Skip to content

Commit

Permalink
chore: 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 8b485ad commit c4218c2
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 c4218c2

Please sign in to comment.