Skip to content

Commit

Permalink
Fix unit tests regarding test installs
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Jul 25, 2022
1 parent 33c5978 commit 85c86c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
can execute in parallel and not interfere with each other.
"""

import json
import os
import shutil
from contextlib import contextmanager
Expand Down Expand Up @@ -107,7 +108,9 @@ def pip(self, *cmd, **kwargs):
return self.python("-m", "pip", *cmd, **kwargs)

def check_not_installed(self):
installed = [line.split()[0] for line in list(self.pip("list"))[2:]]
installed = [
e["name"] for e in json.loads(list(self.pip("list", "--format", "json"))[0])
]
dirty = [self.name, "UNKNOWN"]
app_list = [x for x in dirty if x in installed]
if app_list:
Expand Down

0 comments on commit 85c86c7

Please sign in to comment.