Skip to content

Commit

Permalink
Fix test_build_targets() to run on Python 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanzin committed Oct 13, 2023
1 parent 9ec37ef commit 2802a16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/test_build_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def test_build_targets():
):
build.build(config, MockArchiver, _test_operators) # type: ignore
assert len(mock_starmap.mock_calls) == 6
assert mock_starmap.mock_calls[0].args[-1][-1][-1] == ["e", h_path, "f"]
assert mock_starmap.mock_calls[3].args[-1][-1][-1] == []
assert mock_starmap.call_args_list[0][0][1][-1][-1] == ["e", h_path, "f"]
assert mock_starmap.call_args_list[1][0][1][-1][-1] == []

config.targets = [str(d_path)]
mock_starmap.reset_mock()
Expand All @@ -114,8 +114,8 @@ def test_build_targets():
):
build.build(config, MockArchiver, _test_operators) # type: ignore
assert len(mock_starmap.mock_calls) == 6
assert mock_starmap.mock_calls[0].args[-1][-1][-1] == [h_path]
assert mock_starmap.mock_calls[3].args[-1][-1][-1] == []
assert mock_starmap.call_args_list[0][0][1][-1][-1] == [h_path]
assert mock_starmap.call_args_list[1][0][1][-1][-1] == []


def test_run_operator(config):
Expand Down

0 comments on commit 2802a16

Please sign in to comment.