groq[patch]: allow warnings during tests (#25105)

Among integration packages in libs/partners, Groq is an exception in
that it errors on warnings.

Following https://github.com/langchain-ai/langchain/pull/25084, Groq
fails with

> pydantic.warnings.PydanticDeprecatedSince20: The `__fields__`
attribute is deprecated, use `model_fields` instead. Deprecated in
Pydantic V2.0 to be removed in V3.0.

Here we update the behavior to no longer fail on warning, which is
consistent with the rest of the packages in libs/partners.
This commit is contained in:
ccurme 2024-08-06 18:02:20 -04:00 committed by GitHub
parent 1331e8589c
commit 23c9aba575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,6 @@ omit = [ "tests/*",]
[tool.pytest.ini_options] [tool.pytest.ini_options]
addopts = "--strict-markers --strict-config --durations=5" addopts = "--strict-markers --strict-config --durations=5"
markers = [ "compile: mark placeholder test used to compile integration tests without running them", "scheduled: mark tests to run in scheduled testing",] markers = [ "compile: mark placeholder test used to compile integration tests without running them", "scheduled: mark tests to run in scheduled testing",]
filterwarnings = [ "error", "ignore::ResourceWarning:", "ignore:The method `ChatGroq.with_structured_output` is in beta", "default:The `dict` method is deprecated; use `model_dump` instead:DeprecationWarning", "ignore:tool_choice='any' is not currently supported. Converting to 'auto'.",]
asyncio_mode = "auto" asyncio_mode = "auto"
[tool.poetry.group.test] [tool.poetry.group.test]