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

100% test coverage #202

Merged
merged 2 commits into from Dec 30, 2022
Merged

100% test coverage #202

merged 2 commits into from Dec 30, 2022

Conversation

palfrey
Copy link
Contributor

@palfrey palfrey commented Dec 21, 2022

No description provided.

@@ -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]
Copy link
Contributor Author

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
Copy link
Contributor Author

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)
Copy link
Contributor Author

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
Copy link

codecov bot commented Dec 21, 2022

Codecov Report

Merging #202 (f0f1bf4) into master (797fe1e) will increase coverage by 7.86%.
The diff coverage is 100.00%.

@@             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     
Impacted Files Coverage Δ
dj_database_url.py 100.00% <100.00%> (+7.86%) ⬆️

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

@palfrey palfrey marked this pull request as ready for review December 21, 2022 12:23
@palfrey palfrey merged commit 414c69c into jazzband:master Dec 30, 2022
@palfrey palfrey deleted the 100-test-coverage branch December 30, 2022 09:44
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

1 participant