Skip to content

Commit db4e736

Browse files
authored
Merge pull request #3003 from s-t-e-v-e-n-k/use-correct-mock-assertion
Fix mock assertion in ICU recipe
2 parents 8110faf + 5d5ca2b commit db4e736

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/recipes/test_icu.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ def test_build_arch(
5252

5353
# We expect some calls to `sh.Command`
5454
build_root = self.recipe.get_build_dir(self.arch.arch)
55-
mock_sh_command.has_calls(
55+
mock_sh_command.assert_has_calls(
5656
[
5757
mock.call(
5858
os.path.join(build_root, "source", "runConfigureICU")
5959
),
6060
mock.call(os.path.join(build_root, "source", "configure")),
61-
]
61+
],
62+
any_order=True
6263
)
6364
mock_ensure_dir.assert_called()
6465
mock_chdir.assert_called()

0 commit comments

Comments
 (0)