Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Nov 16, 2023
1 parent 00d2997 commit 50bd37c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions distributed/diagnostics/tests/test_install_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ async def test_pip_install(c, s, a):
PipInstall(packages=["requests"], pip_options=["--upgrade"])
)
assert Popen.call_count > 0
args = Popen.call_args[0][0]
assert "python" in args[0]
assert args[1:] == ["-m", "pip", "install", "--upgrade", "requests"]
python, *args, requirements_file = Popen.call_args[0][0]
assert "python" in python
assert args == ["-m", "pip", "install", "--upgrade", "-r"]
logs = logger.getvalue()
assert "pip installing" in logs
assert "failed" not in logs
Expand Down

0 comments on commit 50bd37c

Please sign in to comment.