Skip to content

chore: correct ModuleNotFoundError() arguments #2033

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 1 commit into from
May 30, 2022

Conversation

JohnVillalovos
Copy link
Member

Previously in commit 233b79e I had
used the name argument for ModuleNotFoundError(). This basically
is the equivalent of not passing any message to
ModuleNotFoundError(). So when the exception was raised it wasn't
very helpful.

Correct that and add a unit-test that shows we get the message we
expect.

Previously in commit 233b79e I had
used the `name` argument for `ModuleNotFoundError()`. This basically
is the equivalent of not passing any message to
`ModuleNotFoundError()`. So when the exception was raised it wasn't
very helpful.

Correct that and add a unit-test that shows we get the message we
expect.
@JohnVillalovos JohnVillalovos requested a review from nejch May 30, 2022 00:14
@codecov-commenter
Copy link

Codecov Report

Merging #2033 (0b7933c) into main (f0152dc) will increase coverage by 8.74%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2033      +/-   ##
==========================================
+ Coverage   84.98%   93.72%   +8.74%     
==========================================
  Files          78       78              
  Lines        4941     4941              
==========================================
+ Hits         4199     4631     +432     
+ Misses        742      310     -432     
Flag Coverage Δ
cli_func_v4 81.64% <0.00%> (?)
py_func_v4 80.51% <0.00%> (?)
unit 84.98% <100.00%> (ø)

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

Impacted Files Coverage Δ
gitlab/cli.py 100.00% <ø> (+31.96%) ⬆️
gitlab/client.py 95.31% <100.00%> (+4.01%) ⬆️
gitlab/config.py 100.00% <0.00%> (+1.14%) ⬆️
gitlab/v4/objects/members.py 94.73% <0.00%> (+1.75%) ⬆️
gitlab/v4/objects/export_import.py 94.59% <0.00%> (+2.70%) ⬆️
gitlab/types.py 100.00% <0.00%> (+3.33%) ⬆️
gitlab/v4/objects/wikis.py 96.42% <0.00%> (+3.57%) ⬆️
gitlab/v4/objects/notes.py 94.23% <0.00%> (+3.84%) ⬆️
gitlab/v4/objects/groups.py 88.65% <0.00%> (+4.25%) ⬆️
... and 31 more

@nejch nejch merged commit b2e6f3b into main May 30, 2022
@nejch nejch deleted the jlvillal/module_not_found_error branch May 30, 2022 06:38
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.

3 participants