From 8a297344c638982524b696b111a78b0b60b88141 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 19:55:53 -0500 Subject: [PATCH] chore(python): Noxfile recognizes that tests can live in a folder (#219) 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 --- cloudbuild/snippets/noxfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cloudbuild/snippets/noxfile.py b/cloudbuild/snippets/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/cloudbuild/snippets/noxfile.py +++ b/cloudbuild/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: