From 055f58960a8fd76f903e1f3f4cf030384c377bb1 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Thu, 27 Apr 2023 12:51:43 -0400 Subject: [PATCH] Fix pytest collection warning (#3651) Fixes a pytest collection warning because the test class starts with the prefix "Test" --- tests/unit_tests/output_parsers/test_pydantic_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit_tests/output_parsers/test_pydantic_parser.py b/tests/unit_tests/output_parsers/test_pydantic_parser.py index 5acf88f5..aefd3c0a 100644 --- a/tests/unit_tests/output_parsers/test_pydantic_parser.py +++ b/tests/unit_tests/output_parsers/test_pydantic_parser.py @@ -23,6 +23,10 @@ class TestModel(BaseModel): ) +# Prevent pytest from trying to run tests on TestModel +TestModel.__test__ = False # type: ignore[attr-defined] + + DEF_RESULT = """{ "action": "Update", "action_input": "The PydanticOutputParser class is powerful",