Skip to content

Commit

Permalink
chore(python): Noxfile recognizes that tests can live in a folder (Go…
Browse files Browse the repository at this point in the history
…ogleCloudPlatform#157)

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 Avani-Thakker-Crest committed Jun 21, 2023
1 parent c7f5611 commit d4946ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bigquery-connection/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 d4946ed

Please sign in to comment.