Skip to content

Commit

Permalink
fix: minor changes and fixing typos
Browse files Browse the repository at this point in the history
Signed-off-by: Ting Cheng <36546476+tincheng@users.noreply.github.com>
  • Loading branch information
tincheng committed Sep 19, 2023
1 parent bb64033 commit 4e9116d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 882 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ parallel = true
omit = [
"**/__main__.py",
"**/_version.py",
"*/deadline/nuke_submitter/ui/*"
"*/deadline/nuke_submitter/ui/*",
# The submitter will be covered by job bundle output tests
"*/deadline/nuke_submitter/deadline_submitter_for_nuke.py"
]


Expand All @@ -122,4 +124,4 @@ source = [

[tool.coverage.report]
show_missing = true
fail_under = 75
fail_under = 73
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def test_handle_complete(self, mock_update_status: Mock, init_data: dict):
assert match is not None
mock_update_status.assert_called_once_with(progress=100, status_message="RENDER COMPLETE")

handle_progess_params = [
handle_progress_params = [
(
(1, 2),
(
Expand All @@ -557,7 +557,7 @@ def test_handle_complete(self, mock_update_status: Mock, init_data: dict):
),
]

@pytest.mark.parametrize("regex_index, stdout, expected_progress", handle_progess_params)
@pytest.mark.parametrize("regex_index, stdout, expected_progress", handle_progress_params)
@patch("deadline.nuke_adaptor.NukeAdaptor.adaptor.NukeAdaptor.update_status")
@patch.object(NukeAdaptor, "_is_rendering", new_callable=PropertyMock(return_value=True))
def test_handle_progress(
Expand Down Expand Up @@ -596,7 +596,7 @@ def test_handle_progress(
("Eddy[ERROR] - Something terrible happened", 3),
]

@pytest.mark.parametrize("regex_index, stdout, expected_progress", handle_progess_params)
@pytest.mark.parametrize("regex_index, stdout, expected_progress", handle_progress_params)
@patch("deadline.nuke_adaptor.NukeAdaptor.adaptor.NukeAdaptor.update_status")
@patch.object(NukeAdaptor, "_is_rendering", new_callable=PropertyMock(return_value=False))
def test_handle_progress_not_rendering(
Expand Down
Loading

0 comments on commit 4e9116d

Please sign in to comment.