Skip to content

Commit

Permalink
Ensure MockPyPIRepository called once
Browse files Browse the repository at this point in the history
  • Loading branch information
atugushev committed Mar 7, 2019
1 parent bf48ad4 commit 4ab052f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 4ab052f

Please sign in to comment.