Skip to content

Commit

Permalink
add check for test_ files
Browse files Browse the repository at this point in the history
  • Loading branch information
leahecole committed Jan 10, 2022
1 parent e1b2357 commit b728fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synthtool/gcp/templates/python_samples/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _session_tests(
session: nox.sessions.Session, post_install: Callable = None
) -> None:
# check for presence of tests
test_list = glob.glob("*_test.py")
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
if len(test_list) == 0:
print("No tests found, skipping directory.")
else:
Expand Down

0 comments on commit b728fa7

Please sign in to comment.