Add relative hidden directory tests

This commit is contained in:
Peter Newman
2022-10-19 12:31:47 +01:00
committed by Dimitri Papadopoulos Orfanos
parent ec43d4fcbf
commit 04f93cfd28

View File

@ -397,6 +397,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):