-
Notifications
You must be signed in to change notification settings - Fork 53
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
DATAUP-765: assertify tests #3389
Conversation
@@ -1,14 +1,27 @@ | |||
import copy | |||
from typing import Any |
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.
added in typing and method descriptions to help me whilst I was converting the tests.
lines.append( | ||
{"is_error": 0, "line": "This is line {}".format(i + skip)} | ||
) | ||
lines.append({"is_error": 0, "line": f"This is line {i + skip}"}) |
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.
use f-string
@@ -74,7 +72,7 @@ def set_ws_name(ws_name): | |||
] | |||
|
|||
|
|||
@pytest.mark.parametrize("result,path,expected", get_result_sub_path_cases) | |||
@pytest.mark.parametrize(("result", "path", "expected"), get_result_sub_path_cases) |
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.
Ruff prefers tuples to comma-separated strings, obviously!
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #3389 +/- ##
===========================================
- Coverage 29.35% 29.33% -0.02%
===========================================
Files 497 497
Lines 50569 50567 -2
===========================================
- Hits 14843 14836 -7
- Misses 35726 35731 +5
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
2f54786
to
22d6cea
Compare
4faae24
to
b982e48
Compare
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 mostly fine, just a mix of the previous PR and some auto gen test updates.
Was the change to kbaseGenericSetViewer.js
intended this time? If not, maybe excise it for the next go around.
Otherwise, please do the rebasing and it's ready.
@@ -48,26 +48,32 @@ define([ | |||
this._super(options); |
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.
These changes are back! 😱
Was that intentional this time?
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.
Nope! Grrrrrr...
Removing some comments and an extraneous method; general tidying
12bc8bf
to
9c2ec3d
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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.
👍
Thanks for removing that JS file change!
Description of PR purpose/changes
Convert existing
self.assert...
style-tests to the pytest-friendlyassert
versions.Basically a big search-and-replace, aided by Ruff's auto-fix feature.
Jira Ticket / Issue
Related Jira ticket: https://kbase-jira.atlassian.net/browse/DATAUP-765
DATAUP-69 Adds a PR template
)Testing Instructions
Dev Checklist:
Updating Version and Release Notes (if applicable)