From d45c57ca521255f0f571fdb1596a6571f39393cc 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 20:32:39 -0500 Subject: [PATCH] chore(python): Noxfile recognizes that tests can live in a folder (#308) 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 --- speech/microphone/noxfile.py | 1 + speech/snippets/noxfile.py | 1 + 2 files changed, 2 insertions(+) diff --git a/speech/microphone/noxfile.py b/speech/microphone/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/speech/microphone/noxfile.py +++ b/speech/microphone/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: diff --git a/speech/snippets/noxfile.py b/speech/snippets/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/speech/snippets/noxfile.py +++ b/speech/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: