Skip to content

Commit b1838f8

Browse files
committed
tests: Update asserts after switching to uv
1 parent f24bce9 commit b1838f8

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ def _mock(command, **kwargs):
440440
mocked_subprocess_run(command, **kwargs)
441441
return mocked_subprocess_run
442442

443+
if command[:6] == [sys.executable, '-u', '-m', 'uv', 'pip', 'install']:
444+
mocked_subprocess_run(command, **kwargs)
445+
return mocked_subprocess_run
446+
443447
if command[:3] == [sys.executable, 'self', 'python-path']:
444448
return mocker.MagicMock(returncode=0, stdout=sys.executable.encode())
445449

tests/helpers/helpers.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,7 @@ def get_current_timestamp():
4848

4949

5050
def assert_plugin_installation(subprocess_run, dependencies: list[str], *, verbosity=0, count=1):
51-
command = [
52-
sys.executable,
53-
'-u',
54-
'-m',
55-
'pip',
56-
'install',
57-
'--disable-pip-version-check',
58-
'--no-python-version-warning',
59-
]
51+
command = [sys.executable, '-u', '-m', 'uv', 'pip', 'install']
6052
add_verbosity_flag(command, verbosity, adjustment=-1)
6153
command.extend(dependencies)
6254

0 commit comments

Comments
 (0)