Skip to content

Commit

Permalink
chore(python): Noxfile recognizes that tests can live in a folder (#225)
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 dd2a799 commit cefb991
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/google-cloud-kms/.github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:ae600f36b6bc972b368367b6f83a1d91ec2c82a4a116b383d67d547c56fe6de3
digest: sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828
1 change: 1 addition & 0 deletions packages/google-cloud-kms/samples/attestations/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 packages/google-cloud-kms/samples/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 cefb991

Please sign in to comment.