Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Dec 9, 2023
1 parent 614838f commit b35f280
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions codespell_lib/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,12 @@ def test_ignore(
assert cs.main("--skip=*ignoredir*", tmp_path) == 1
assert cs.main("--skip=ignoredir", tmp_path) == 1
assert cs.main("--skip=*ignoredir/bad*", tmp_path) == 1
badjs = tmp_path / "bad.js"
copyfile(badtxt, badjs)
subdir = subdir / "ignoredir2"
subdir.mkdir()
copyfile(badtxt, subdir / "bad.txt")
assert cs.main("--skip=ignoredir*", tmp_path) == 1
assert cs.main("--skip=ignoredir2", tmp_path) == 2
copyfile(badtxt, tmp_path / "bad.js")
assert cs.main("--skip=*.js", goodtxt, badtxt, badjs) == 1


Expand Down

0 comments on commit b35f280

Please sign in to comment.