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