From d4946ed991d95d0b308bd5ea1ccb7685bf9a56b9 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:53:30 -0500
Subject: [PATCH] chore(python): Noxfile recognizes that tests can live in a
 folder (#157)

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 <gcf-owl-bot[bot]@users.noreply.github.com>
---
 bigquery-connection/snippets/noxfile.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bigquery-connection/snippets/noxfile.py b/bigquery-connection/snippets/noxfile.py
index 3bbef5d54f44..20cdfc620138 100644
--- a/bigquery-connection/snippets/noxfile.py
+++ b/bigquery-connection/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: