-
-
Notifications
You must be signed in to change notification settings - Fork 946
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(testing): add
raw_path
to ASGI scope (#2331)
* style (testing): fix errors in gates * docs (newsfragment): add newsfragment * refactor (testing): refactor asgi test * test (test_recipes): update test for asgi scope * docs(testing): clean up the docs, tests and notes before merging * docs(testing): add a versionadded note, improve impl --------- Co-authored-by: Vytautas Liuolia <vytautas.liuolia@gmail.com>
- Loading branch information
Showing
4 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Similar to :func:`~falcon.testing.create_environ`, | ||
the :func:`~falcon.testing.create_scope` testing helper now preserves the raw URI path, | ||
and propagates it to the created ASGI connection scope as the ``raw_path`` byte string | ||
(according to the `ASGI specification | ||
<https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope>`__). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters