-
-
Notifications
You must be signed in to change notification settings - Fork 187
Support quoting list values in mappings #443
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
Merged
Merged
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a9b4fd4
Support quoting lists when used in mappings
Lonami 87b1544
Add file to CHANGES/
Lonami 4688a31
Update documentation with new use of sequences
Lonami 50ac939
Apply flake8 suggestion on the new sequence tests
Lonami d48f343
Use pytest.mark.parametrize on query_sequence tests
Lonami 65d804b
Use pytest.param for cleaner test output
Lonami 3baab57
Use shorter lines in test_with_query_sequence params
Lonami 55883ae
Reword changelog on use of sequences as dict values
Lonami eca89cc
Add test cases for quoting sequences with ampersands
Lonami b2c74e1
Use match= keyword for test_with_query_sequence_invalid_use
Lonami 5a97e18
Parametrize test_with_query_params with extra cases
Lonami 6453bbe
Add a test to ensure braces are not quoted
Lonami 95d9b3c
Add tests to ensure keys are quoted properly
Lonami 773a0c7
Add tests for edge cases of quoting lists and tuples
Lonami 5fc17fa
Use tuples in pytest.parametrize
Lonami 167ff0f
Update test_with_query_sequence to compare str
Lonami 434c3cb
Update tests to check query key[] is encoded
Lonami File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| Allow use of sequences such as :class:`list` and :class:`tuple` in the values | ||
| of a mapping such as :class:`dict` to represent that a key has many values: | ||
|
|
||
| url = URL("http://example.com") | ||
| assert url.with_query({"a": [1, 2]}) == URL("http://example.com/?a=1&a=2") |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.