You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by chris48s September 13, 2023
Hello. I'm not really sure if this is an issue with starlette or httpx. It kind of sits at the intersection between the two. Here''s a minimal example application:
and run it again. The test now fails. The output is %3A/ not :/
Note that the actual application behaviour is unchanged. i.e: when invoked independently of TestClient (I'm serving with uvicorn app:app), the response is still :/ in either case.
This seems like it could be related to encode/httpx#2844 but I decided to open a discussion specifically about the impact on starlette TestClient
Important
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
Discussed in #2281
Originally posted by chris48s September 13, 2023
Hello. I'm not really sure if this is an issue with starlette or httpx. It kind of sits at the intersection between the two. Here''s a minimal example application:
app.py:..and here's a unit test (pytest):
test.py:If I run that test with
installed, the test passes.
Install
and run it again. The test now fails. The output is
%3A/not:/Note that the actual application behaviour is unchanged. i.e: when invoked independently of
TestClient(I'm serving withuvicorn app:app), the response is still:/in either case.This seems like it could be related to encode/httpx#2844 but I decided to open a discussion specifically about the impact on starlette
TestClientImportant