-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
100% test coverage #202
100% test coverage #202
Conversation
@@ -130,8 +126,6 @@ def parse( | |||
hostname = spliturl.netloc | |||
if "@" in hostname: | |||
hostname = hostname.rsplit("@", 1)[1] | |||
if ":" in hostname: | |||
hostname = hostname.split(":", 1)[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came in as part of be4c7f2 and AFAIK this seems to work without it just fine. We certainly don't have a test case that breaks without it
@@ -196,7 +191,4 @@ def parse( | |||
if options: | |||
parsed_config["OPTIONS"] = options | |||
|
|||
if engine: | |||
parsed_config["ENGINE"] = engine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
engine
is always Truthy as in the None case we parse it earlier on, so I've just set this directly in the earlier update
call.
else: | ||
path, raw_query = path, spliturl.query | ||
query = urlparse.parse_qs(raw_query) | ||
query = urlparse.parse_qs(spliturl.query) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came in in #59 but seems to work fine without it. Not sure if there was an issue in earlier (pre-3.x) Python parsing or something.
Codecov Report
@@ Coverage Diff @@
## master #202 +/- ##
===========================================
+ Coverage 92.13% 100.00% +7.86%
===========================================
Files 1 1
Lines 89 82 -7
Branches 17 14 -3
===========================================
Hits 82 82
+ Misses 3 0 -3
+ Partials 4 0 -4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
No description provided.