diff --git a/vision/snippets/crop_hints/noxfile.py b/vision/snippets/crop_hints/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/vision/snippets/crop_hints/noxfile.py +++ b/vision/snippets/crop_hints/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/vision/snippets/detect/noxfile.py b/vision/snippets/detect/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/vision/snippets/detect/noxfile.py +++ b/vision/snippets/detect/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/vision/snippets/document_text/noxfile.py b/vision/snippets/document_text/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/vision/snippets/document_text/noxfile.py +++ b/vision/snippets/document_text/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/vision/snippets/face_detection/noxfile.py b/vision/snippets/face_detection/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/vision/snippets/face_detection/noxfile.py +++ b/vision/snippets/face_detection/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/vision/snippets/product_search/noxfile.py b/vision/snippets/product_search/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/vision/snippets/product_search/noxfile.py +++ b/vision/snippets/product_search/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/vision/snippets/quickstart/noxfile.py b/vision/snippets/quickstart/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/vision/snippets/quickstart/noxfile.py +++ b/vision/snippets/quickstart/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/vision/snippets/web/noxfile.py b/vision/snippets/web/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/vision/snippets/web/noxfile.py +++ b/vision/snippets/web/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: