From 9c7e017265a1b715b4668667773d6a00cb489feb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 18 Jan 2022 21:06:52 -0500 Subject: [PATCH] chore(python): Noxfile recognizes that tests can live in a folder (#270) Source-Link: https://github.com/googleapis/synthtool/commit/4760d8dce1351d93658cb11d02a1b7ceb23ae5d7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828 Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- packages/google-cloud-securitycenter/.github/.OwlBot.lock.yaml | 2 +- .../google-cloud-securitycenter/samples/snippets/noxfile.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-securitycenter/.github/.OwlBot.lock.yaml b/packages/google-cloud-securitycenter/.github/.OwlBot.lock.yaml index eecb84c21b27..52d79c11f3ad 100644 --- a/packages/google-cloud-securitycenter/.github/.OwlBot.lock.yaml +++ b/packages/google-cloud-securitycenter/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:ae600f36b6bc972b368367b6f83a1d91ec2c82a4a116b383d67d547c56fe6de3 + digest: sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828 diff --git a/packages/google-cloud-securitycenter/samples/snippets/noxfile.py b/packages/google-cloud-securitycenter/samples/snippets/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/packages/google-cloud-securitycenter/samples/snippets/noxfile.py +++ b/packages/google-cloud-securitycenter/samples/snippets/noxfile.py @@ -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: