New TestClient crashes #1869
Answered
by
Goldziher
Goldziher
asked this question in
Potential Issue
-
Here is the stack trace: tests/test_dependency.py:None (tests/test_dependency.py)
test_dependency.py:9: in <module>
from starlite.testing import create_test_client
../starlite/testing.py:6: in <module>
from starlette.testclient import TestClient as StarletteTestClient
../../../Library/Caches/pypoetry/virtualenvs/starlite-s4i-xLL2-py3.10/lib/python3.10/site-packages/starlette/testclient.py:353: in <module>
class TestClient(httpx.Client):
../../../Library/Caches/pypoetry/virtualenvs/starlite-s4i-xLL2-py3.10/lib/python3.10/site-packages/starlette/testclient.py:405: in TestClient
) -> typing.Union[bool, httpx._client.UseClientDefault]:
E AttributeError: module 'httpx._client' has no attribute 'UseClientDefault' FYI @Kludex |
Beta Was this translation helpful? Give feedback.
Answered by
Goldziher
Sep 26, 2022
Replies: 2 comments 7 replies
-
What version? |
Beta Was this translation helpful? Give feedback.
7 replies
-
yup, my bad. cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adriangb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yup, my bad. cheers.