Skip to content

Commit 10af94d

Browse files
mitchh456claude
andcommitted
Fix starlette tox envs for isolated testing
- Remove starlette 0.36 envs (not relevant to 1.0 compat verification) - Run only starlette tests in starlette envs (avoids collection errors from Django tests when Django is not installed) - Add asgiref dep (needed by test, normally a Django transitive dep) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3b07326 commit 10af94d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tox.ini

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ envlist =
44
{py310,py311,py312,py313}-django{40,41,42},
55
{py310,py311,py312,py313}-django{50a,51,52},
66
py314-django52,
7-
{py310,py311,py312,py313}-starlette{036,10},
8-
py314-starlette10,
7+
{py310,py311,py312,py313}-starlette10,
98
[testenv]
109
passenv =
1110
ELASTICSEARCH_URL
@@ -53,9 +52,9 @@ deps =
5352
rq
5453
six
5554
sqlalchemy
56-
!starlette036-!starlette10: starlette
57-
starlette036: starlette>=0.36,<0.37
55+
!starlette10: starlette
5856
starlette10: starlette>=1.0,<1.1
57+
starlette10: asgiref
5958
webtest
6059
commands =
6160
pytest {posargs}
@@ -65,6 +64,6 @@ commands =
6564
commands =
6665
pytest {posargs} --asyncio-mode=auto
6766

68-
[testenv:py{310,311,312,313,314}-starlette{036,10}]
67+
[testenv:py{310,311,312,313}-starlette10]
6968
commands =
70-
pytest {posargs} --asyncio-mode=auto
69+
pytest tests/integration/test_starlette.py {posargs} --asyncio-mode=auto

0 commit comments

Comments
 (0)