Diff
1diff --git a/tests/test_check_venv.zunit b/tests/test_check_venv.zunit
2index d942a1e99a274590d0f6f57becd9dc3751370a32..968024c0516304345643106a9e52f72e1541727a 100644
3--- a/tests/test_check_venv.zunit
4+++ b/tests/test_check_venv.zunit
5@@ -4,11 +4,11 @@
6
7 if [[ ! -d "$HOME/.virtualenvs/foobar/" ]]; then
8 echo "Creating test virtualenv"
9- run python -m virtualenv "$HOME/.virtualenvs/foobar" --python=python3
10+ run virtualenv "$HOME/.virtualenvs/foobar" --python=python3
11 fi
12 if [[ ! -d "$HOME/.virtualenvs/foodefault/" ]]; then
13 echo "Creating default test virtualenv"
14- run python -m virtualenv "$HOME/.virtualenvs/foodefault" --python=python3
15+ run virtualenv "$HOME/.virtualenvs/foodefault" --python=python3
16 fi
17
18 unset AUTOSWITCH_MESSAGE_FORMAT
19@@ -158,13 +158,9 @@
20 PWD="$TARGET/sub-directory" # Should also work in subdirectories where pyproject.toml is found
21 touch "$TARGET/pyproject.toml"
22
23- # Mimic poetry run which python
24+ # Mimic "poetry run which python"
25 function poetry {
26- if [[ "$@" == "run which python" ]]; then
27- echo "$HOME/.virtualenvs/foobar/bin/python"
28- else
29- echo "ERROR - wrong command from what was expected ran!"
30- fi
31+ echo "$HOME/.virtualenvs/foobar/bin/python"
32 }
33
34 run check_venv
35diff --git a/tests/test_plugin.zunit b/tests/test_plugin.zunit
36index 77a6640733e10fa27855483013ace18b99b28868..5a2f2e96c32e76279bff3321a0925a1dea5f1f1c 100644
37--- a/tests/test_plugin.zunit
38+++ b/tests/test_plugin.zunit
39@@ -3,7 +3,7 @@
40 @setup {
41 if [[ ! -d "$HOME/.virtualenvs/foobar/" ]]; then
42 echo "Creating test virtualenv"
43- run python -m virtualenv "$HOME/.virtualenvs/foobar" --python=python3
44+ run virtualenv "$HOME/.virtualenvs/foobar" --python=python3
45 fi
46 unset VIRTUAL_ENV
47 unset AUTOSWITCH_MESSAGE_FORMAT