-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: adaptor wheel error dialog and unit test coverage #18
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tincheng
force-pushed
the
tincheng/unit_test_coverage
branch
4 times, most recently
from
September 12, 2023 00:32
3a67d4d
to
286dc15
Compare
tincheng
force-pushed
the
tincheng/unit_test_coverage
branch
from
September 12, 2023 21:20
286dc15
to
d27dc3f
Compare
tincheng
changed the title
add unit test coverage
fix: adaptor wheel error dialog and unit test coverage
Sep 12, 2023
rmv
reviewed
Sep 13, 2023
test/deadline_adaptor_for_nuke/unit/NukeAdaptor/test_adaptor.py
Outdated
Show resolved
Hide resolved
agerveshi
approved these changes
Sep 14, 2023
test/deadline_submitter_for_nuke/unit/test_deadline_submitter_for_nuke.py
Outdated
Show resolved
Hide resolved
test/deadline_submitter_for_nuke/unit/test_template_output/expected_job_template_output.py
Outdated
Show resolved
Hide resolved
tincheng
force-pushed
the
tincheng/unit_test_coverage
branch
from
September 18, 2023 20:18
d27dc3f
to
3722365
Compare
test/deadline_submitter_for_nuke/unit/test_template_output/expected_job_template_output.py
Outdated
Show resolved
Hide resolved
amznestebanpapp
approved these changes
Sep 18, 2023
rmv
approved these changes
Sep 18, 2023
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.
LGTM (though I'm new to this testing setup)
@@ -673,3 +730,34 @@ def test_does_nothing_if_nuke_not_running( | |||
# THEN | |||
assert "CANCEL REQUESTED" in caplog.text | |||
assert "Nothing to cancel because Nuke is not running" in caplog.text | |||
|
|||
|
|||
class TestNukeAdaptor_get_major_minor_version: |
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.
Missing type hints in these methods
tincheng
force-pushed
the
tincheng/unit_test_coverage
branch
from
September 18, 2023 21:39
3722365
to
f775b71
Compare
jlangmann-aws
approved these changes
Sep 18, 2023
mwiebe
requested changes
Sep 18, 2023
test/deadline_submitter_for_nuke/unit/test_deadline_submitter_for_nuke.py
Outdated
Show resolved
Hide resolved
test/deadline_submitter_for_nuke/unit/test_deadline_submitter_for_nuke.py
Outdated
Show resolved
Hide resolved
test/deadline_submitter_for_nuke/unit/test_deadline_submitter_for_nuke.py
Outdated
Show resolved
Hide resolved
tincheng
force-pushed
the
tincheng/unit_test_coverage
branch
2 times, most recently
from
September 18, 2023 22:46
9c754ca
to
36af21e
Compare
Signed-off-by: Ting Cheng <36546476+tincheng@users.noreply.github.com>
Signed-off-by: Ting Cheng <36546476+tincheng@users.noreply.github.com>
tincheng
force-pushed
the
tincheng/unit_test_coverage
branch
from
September 19, 2023 00:13
36af21e
to
4e9116d
Compare
mwiebe
approved these changes
Sep 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What was the problem/requirement? (What/Why)
FileNotFoundError
instead of the intendedThe Developer Option 'Include Adaptor Wheels' is enabled, but the wheels directory does not exist
messageWhat was the solution? (How)
is_dir()
instead ofexists()
What is the impact of this change?
Better test coverage and small fix for user experience
How was this change tested?
hatch run test
Did you run the "Job Bundle Output Tests"? If not, why not? If so, paste the test results here.
No - I was not able to run the Job Bundle Output Tests on Mac. Got
Failed 2 tests, succeeded 0. See the file /Users/tincheng/workplace/deadline-cloud-for-nuke/job_bundle_output_tests/test-job-bundle-results.txt for a full report.
and the output file was blank. Probably need more time to get the bundle tests working on Mac, but I think this PR should have low impact without this as changes are either just unit tests or had been verified within DCC.Was this change documented?
No
Is this a breaking change?
No