Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accept to overwrite sent headers when using TestClient #503

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ticapix
Copy link

@ticapix ticapix commented Jun 25, 2024

Hello,

Somehow related to #501 , there is a bug when testing if we specify a header already defined in the helper.

        response = await test_client.get("/test", headers={"accept": "application/json"})

Bug:

The accept header is already set in the helper and the specified value is not send.

Expected:

The accept header sent is the one specified in the test call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant