mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 12:39:32 +00:00
Fix pytest collection warning (#3651)
Fixes a pytest collection warning because the test class starts with the prefix "Test"
This commit is contained in:
@@ -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 = """{
|
DEF_RESULT = """{
|
||||||
"action": "Update",
|
"action": "Update",
|
||||||
"action_input": "The PydanticOutputParser class is powerful",
|
"action_input": "The PydanticOutputParser class is powerful",
|
||||||
|
Reference in New Issue
Block a user