Skip to content

Commit 5a86ef7

Browse files
gcf-owl-bot[bot]dandhlee
authored andcommitted
chore(python): Noxfile recognizes that tests can live in a folder (#296)
Source-Link: googleapis/synthtool@4760d8d 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>
1 parent d40bd46 commit 5a86ef7

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

vision/snippets/crop_hints/noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def _session_tests(
187187
) -> None:
188188
# check for presence of tests
189189
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
190+
test_list.extend(glob.glob("tests"))
190191
if len(test_list) == 0:
191192
print("No tests found, skipping directory.")
192193
else:

vision/snippets/detect/noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def _session_tests(
187187
) -> None:
188188
# check for presence of tests
189189
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
190+
test_list.extend(glob.glob("tests"))
190191
if len(test_list) == 0:
191192
print("No tests found, skipping directory.")
192193
else:

vision/snippets/document_text/noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def _session_tests(
187187
) -> None:
188188
# check for presence of tests
189189
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
190+
test_list.extend(glob.glob("tests"))
190191
if len(test_list) == 0:
191192
print("No tests found, skipping directory.")
192193
else:

vision/snippets/face_detection/noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def _session_tests(
187187
) -> None:
188188
# check for presence of tests
189189
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
190+
test_list.extend(glob.glob("tests"))
190191
if len(test_list) == 0:
191192
print("No tests found, skipping directory.")
192193
else:

vision/snippets/product_search/noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def _session_tests(
187187
) -> None:
188188
# check for presence of tests
189189
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
190+
test_list.extend(glob.glob("tests"))
190191
if len(test_list) == 0:
191192
print("No tests found, skipping directory.")
192193
else:

vision/snippets/quickstart/noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def _session_tests(
187187
) -> None:
188188
# check for presence of tests
189189
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
190+
test_list.extend(glob.glob("tests"))
190191
if len(test_list) == 0:
191192
print("No tests found, skipping directory.")
192193
else:

vision/snippets/web/noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def _session_tests(
187187
) -> None:
188188
# check for presence of tests
189189
test_list = glob.glob("*_test.py") + glob.glob("test_*.py")
190+
test_list.extend(glob.glob("tests"))
190191
if len(test_list) == 0:
191192
print("No tests found, skipping directory.")
192193
else:

0 commit comments

Comments
 (0)