Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Collingham committed Jun 11, 2021
1 parent 27956cc commit bdf1cf2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,23 @@ def test_environment(mock_popen, mock_check_call, clients):
rcvd = socket_client.get_received()
assert len(rcvd) == 1
mock_popen.assert_called_once_with(
["docker-compose", "-f", "pytest_examples/docker-compose.yml", "up"]
[
"docker-compose",
"-f",
os.path.abspath("pytest_examples/docker-compose.yml"),
"up",
]
)

socket_client.emit("stop env", "")
rcvd = []
while len(rcvd) < 2:
rcvd.extend(socket_client.get_received())
mock_check_call.assert_called_once_with(
["docker-compose", "-f", "pytest_examples/docker-compose.yml", "down"]
[
"docker-compose",
"-f",
os.path.abspath("pytest_examples/docker-compose.yml"),
"down",
]
)

0 comments on commit bdf1cf2

Please sign in to comment.