mirror of
https://github.com/codespell-project/codespell.git
synced 2025-05-21 01:17:01 +08:00
Add relative hidden directory tests
This commit is contained in:
@ -383,6 +383,11 @@ def test_check_hidden(tmpdir, capsys):
|
||||
assert cs.main(d) == 0
|
||||
assert cs.main('--check-hidden', d) == 2
|
||||
assert cs.main('--check-hidden', '--check-filenames', d) == 5
|
||||
# check again with a relative path
|
||||
rel = op.join('.', str(tmpdir))
|
||||
assert cs.main(rel) == 0
|
||||
assert cs.main('--check-hidden', rel) == 2
|
||||
assert cs.main('--check-hidden', '--check-filenames', rel) == 5
|
||||
|
||||
|
||||
def test_case_handling(tmpdir, capsys):
|
||||
|
Reference in New Issue
Block a user