Skip to content

fix: checking if RESTManager._from_parent_attrs is set #1367

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
Mar 10, 2021
Merged

fix: checking if RESTManager._from_parent_attrs is set #1367

merged 1 commit into from
Mar 10, 2021

Conversation

JohnVillalovos
Copy link
Member

Prior to commit 3727cbd
RESTManager._from_parent_attrs did not exist unless it was explicitly
set. But commit 3727cbd set it to a
default value of {}.

So the checks using hasattr() were no longer valid.

Update the checks to check if RESTManager._from_parent_attrs has a
value.

Prior to commit 3727cbd
RESTManager._from_parent_attrs did not exist unless it was explicitly
set. But commit 3727cbd set it to a
default value of {}.

So the checks using hasattr() were no longer valid.

Update the checks to check if RESTManager._from_parent_attrs has a
value.
@codecov-io
Copy link

Codecov Report

Merging #1367 (8224b40) into master (de73ea7) will decrease coverage by 0.00%.
The diff coverage is 62.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1367      +/-   ##
==========================================
- Coverage   79.94%   79.93%   -0.01%     
==========================================
  Files          73       73              
  Lines        4008     4011       +3     
==========================================
+ Hits         3204     3206       +2     
- Misses        804      805       +1     
Flag Coverage Δ
unit 79.93% <62.50%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
gitlab/v4/cli.py 40.71% <57.14%> (+0.31%) ⬆️
gitlab/base.py 84.86% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de73ea7...8224b40. Read the comment docs.

@nejch nejch merged commit f93b9b5 into python-gitlab:master Mar 10, 2021
@JohnVillalovos JohnVillalovos deleted the jlvillal/from_parent_attrs branch March 14, 2021 17:47
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