-
Notifications
You must be signed in to change notification settings - Fork 331
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
[ENG-5546] Catch all github-related errros in addons test CI suite #10606
[ENG-5546] Catch all github-related errros in addons test CI suite #10606
Conversation
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.
Looks good, just a few minor style fixes needed.
addons/gitlab/tests/test_views.py
Outdated
@@ -518,24 +519,94 @@ def test_link_repo_non_existent(self, mock_repo): | |||
|
|||
assert res.status_code == 400 | |||
|
|||
user = 'octo-cat' |
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.
nitpick: if this is constant fixture data, can you capitalize the variable names and move it either to the top of the class definition or the file definition (whichever is more appropriate)?
addons/gitlab/tests/test_views.py
Outdated
'tree': {'url': 'https://docs.github.com/en/rest/git/trees', | ||
'sha': 'e22d92d5d90bb8f9695e9a5e2e2311a5c1997230'}, | ||
} | ||
repo_parents = [ |
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.
ditto the above vars
addons/github/tests/test_views.py
Outdated
'tree': {'url': 'https://docs.github.com/en/rest/git/trees', | ||
'sha': 'e22d92d5d90bb8f9695e9a5e2e2311a5c1997230'}, | ||
} | ||
repo_parents = [ |
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.
same comment as below (sorry they are out of order)
f0c3ef6
into
CenterForOpenScience:feature/python-upgrade
Nice! Merged. |
Purpose
Address 9 failed tests due to lack of mock data and missing session.
Changes
QA Notes
Please make verification statements inspired by your code and what your code touches.
What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation
Side Effects
Ticket
https://openscience.atlassian.net/browse/ENG-5546