Skip to content

Commit b1c8b2a

Browse files
codebydivineclaude
andcommitted
fix: Add missing trio and pytest-anyio dependencies for CI tests
Resolves GitHub CI failures where 71 tests were failing with "ModuleNotFoundError: No module named 'trio'". Tests use @pytest.mark.anyio which automatically tests against multiple async backends (asyncio and trio), but trio dependency was missing from the project configuration. Changes: - Add anyio>=4.0.0 to main dependencies (required by source code) - Add pytest-anyio>=0.8.0 and trio>=0.20.0 to dev dependencies - Configure anyio_backends = ["asyncio", "trio"] in pytest settings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 65bb74b commit b1c8b2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ keywords = ["blockchain", "ethereum", "solana", "defi", "nft", "api", "thegraph"
2929
dependencies = [
3030
"divine-requests>=0.1.1",
3131
"divine-type-enforcer>=0.1.1",
32+
"anyio>=4.0.0",
3233
]
3334

3435
[project.optional-dependencies]
3536
dev = [
3637
"pytest>=8.0",
3738
"pytest-cov>=4.0",
3839
"pytest-asyncio>=0.21",
40+
"pytest-anyio>=0.8.0",
41+
"trio>=0.20.0",
3942
"python-dotenv>=1.0.0",
4043
"pre-commit>=3.5.0",
4144
"ruff>=0.8.0",
@@ -53,6 +56,7 @@ where = ["src"]
5356
pythonpath = ["src"]
5457
testpaths = ["tests"]
5558
addopts = "--cov=thegraph_token_api --cov-report term-missing"
59+
anyio_backends = ["asyncio", "trio"]
5660

5761
[tool.coverage.run]
5862
source = ["src/thegraph_token_api"]

0 commit comments

Comments
 (0)