From 4ab052f5dcdce71a8cfb3368f30ef120e42bdbaf Mon Sep 17 00:00:00 2001 From: Albert Tugushev Date: Thu, 7 Mar 2019 17:23:48 +0300 Subject: [PATCH] Ensure MockPyPIRepository called once --- tests/test_cli_compile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_cli_compile.py b/tests/test_cli_compile.py index 8b4ad43b0..750c40da4 100644 --- a/tests/test_cli_compile.py +++ b/tests/test_cli_compile.py @@ -551,6 +551,4 @@ def test_build_isolation_option(MockPyPIRepository, runner, option, expected): runner.invoke(cli, [option]) # Ensure the build_isolation option in PyPIRepository has the expected value. - for call in MockPyPIRepository.call_args_list: - build_isolation = call[0][2] - assert build_isolation is expected + assert [call[0][2] for call in MockPyPIRepository.call_args_list] == [expected]