We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5153970 commit bfd9202Copy full SHA for bfd9202
tests/test_main.py
@@ -1,5 +1,6 @@
1
"""Test the function used by the installed script."""
2
3
+import glob
4
import os.path
5
6
import pytest
@@ -19,3 +20,10 @@ def test_call_empty(to_pass):
19
20
def test_call_single():
21
"""Test that calling with a single directory finds files."""
22
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