We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dccceb1 commit fec5bc1Copy full SHA for fec5bc1
privateca/snippets/noxfile.py
@@ -207,8 +207,10 @@ def _session_tests(
207
session: nox.sessions.Session, post_install: Callable = None
208
) -> None:
209
# check for presence of tests
210
- test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
211
- test_list.extend(glob.glob("tests"))
+ test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob(
+ "**/test_*.py", recursive=True
212
+ )
213
+ test_list.extend(glob.glob("**/tests", recursive=True))
214
215
if len(test_list) == 0:
216
print("No tests found, skipping directory.")
0 commit comments