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

test_url_query: Expand tests #220

Merged
merged 8 commits into from
Apr 19, 2023
Merged

test_url_query: Expand tests #220

merged 8 commits into from
Apr 19, 2023

Conversation

behnam
Copy link
Contributor

@behnam behnam commented Jul 14, 2018

Expanding URL-query tests to cover more behaviors around special chars
when parsing, setting, re-setting and getting values.

Bug revealed are marked with FIXME to address separately.

@behnam behnam force-pushed the query_1 branch 2 times, most recently from 4bf3c56 to f3bd101 Compare August 13, 2018 02:53
@behnam
Copy link
Contributor Author

behnam commented Aug 13, 2018

Looks like we have a conflict here: mypy is enforced in CI and I need to use py36-only syntax for type hinting to make it happy, but then it fails on py35.

I think we should limit mypy to py>=36. Let me send a separate PR for that.

@behnam
Copy link
Contributor Author

behnam commented Aug 13, 2018

Actually, disabling mypy wouldn't work, because it's a syntax error for normal executions on PY35.

Instead, falling back to PY35-compatible type hint for the const value, and silencing flake8 error for unused variable.

#fingerscrossed

@codecov
Copy link

codecov bot commented Aug 13, 2018

Codecov Report

Merging #220 (9f052c3) into master (d0ee035) will not change coverage.
The diff coverage is n/a.

❗ Current head 9f052c3 differs from pull request most recent head 7f12f43. Consider uploading reports for the commit 7f12f43 to get more accurate results

@@           Coverage Diff           @@
##           master     #220   +/-   ##
=======================================
  Coverage   99.73%   99.73%           
=======================================
  Files           4        4           
  Lines         768      768           
  Branches      217      217           
=======================================
  Hits          766      766           
  Misses          2        2           
Flag Coverage Δ
unit 99.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

tests/test_url_query.py Show resolved Hide resolved
@behnam
Copy link
Contributor Author

behnam commented Aug 21, 2018

@asvetlov, I believe this is ready for review.

Copy link
Contributor

@mjpieters mjpieters left a comment

Choose a reason for hiding this comment

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

LGTM, and the original change request has been addressed.

@mjpieters

This comment was marked as outdated.

besfahbod and others added 7 commits April 19, 2023 17:08
Expanding URL-query tests to cover more behaviors around special chars
when parsing, setting, re-setting and getting values.

Bug revealed are marked with `FIXME` to address separately.
Semi-colons are _not_ reserved characters in the query string of a URL;
the query string portion consists of `pchar` characters, and `pchar`
includes `sub-delim`, which is the class that contains `;`.
- There is no way to distinguish between `?a=` and `?a` when rebuilding
  a query string.
- The further encoding of query delimiters (`=` and `&` in query
  _values_ is entirely normal and expected.
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Apr 19, 2023
@mjpieters mjpieters dismissed asvetlov’s stale review April 19, 2023 16:15

Issues were addressed.

@mjpieters mjpieters merged commit 164cab0 into aio-libs:master Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants