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

TestClient: provide "raw_path" in scope #635

Closed
wants to merge 1 commit into from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Sep 11, 2019

No description provided.


client = TestClient(app)

# _ASGIAdapter unquotes "path", so this goes to the fallback route.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you feel about not using "unquote" for the provided path?
(i.e. there is not really a reason for the test client to behave like a "bad webserver" that would unquote already)

@tomchristie
Copy link
Member

Going to pick #805 over this one, since I prefer the simpler test case.
Thanks as ever, @blueyed!

@blueyed
Copy link
Contributor Author

blueyed commented Jan 29, 2020

Going to pick #805 over this one, since I prefer the simpler test case.

IIRC this is testing various corner cases here also, i.e. "more tests" - please consider at least checking if it works the same way with #805 then.

@blueyed blueyed deleted the raw_path branch January 29, 2020 18:00
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.

None yet

2 participants