Skip to content

Commit

Permalink
chore(python): Noxfile recognizes that tests can live in a folder (#308)
Browse files Browse the repository at this point in the history
Source-Link: googleapis/synthtool@4760d8d
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and Eric Schmidt committed Mar 13, 2023
1 parent 4d98fea commit 15d44e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions speech/microphone/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def _session_tests(
) -> None:
# check for presence of tests
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
test_list.extend(glob.glob("tests"))
if len(test_list) == 0:
print("No tests found, skipping directory.")
else:
Expand Down
1 change: 1 addition & 0 deletions speech/snippets/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def _session_tests(
) -> None:
# check for presence of tests
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
test_list.extend(glob.glob("tests"))
if len(test_list) == 0:
print("No tests found, skipping directory.")
else:
Expand Down

0 comments on commit 15d44e6

Please sign in to comment.