Skip to content

Commit bfd9202

Browse files
committed
TST: Check equivalence of two styles of call
1 parent 5153970 commit bfd9202

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Test the function used by the installed script."""
22

3+
import glob
34
import os.path
45

56
import pytest
@@ -19,3 +20,10 @@ def test_call_empty(to_pass):
1920
def test_call_single():
2021
"""Test that calling with a single directory finds files."""
2122
assert main([THIS_DIR]) > 0
23+
24+
25+
def test_dir_equals_files():
26+
"""Test equivalence of calls with single dir vs files."""
27+
single_result = main([THIS_DIR])
28+
multi_result = main(glob.glob(os.path.join(THIS_DIR, "*.[ch]")))
29+
assert single_result == multi_result

0 commit comments

Comments
 (0)