Skip to content

Commit

Permalink
chore(python): Noxfile recognizes that tests can live in a folder (#462)
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
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 19, 2022
1 parent c0ec252 commit b72c5ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dialogflow/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 b72c5ec

Please sign in to comment.