test(mistralai): stabilize integration tests with rate limiting and retries (#37588)

Mistral integration tests have been flaky against the live API. This
adds a shared, xdist-aware rate limiter and a global retry policy so
transient 429s no longer fail the suite.
This commit is contained in:
Mason Daugherty
2026-05-20 19:49:25 -05:00
committed by GitHub
parent 5197dd5985
commit 4d2efcd756
6 changed files with 51 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ Reddit = "https://www.reddit.com/r/LangChain/"
test = [
"pytest>=9.0.3,<10.0.0",
"pytest-asyncio>=1.3.0,<2.0.0",
"pytest-retry>=1.7.0,<1.8.0",
"pytest-watcher>=0.3.4,<1.0.0",
"pytest-xdist>=3.6.1,<4.0.0",
"langchain-core>=1.4.0,<2.0.0",