summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/functional/cli/test_cli_packages.py3
-rw-r--r--tests/functional/cli/test_cli_v4.py4
-rw-r--r--tests/functional/cli/test_cli_variables.py5
-rw-r--r--tox.ini3
4 files changed, 12 insertions, 3 deletions
diff --git a/tests/functional/cli/test_cli_packages.py b/tests/functional/cli/test_cli_packages.py
index d7cdd18..a0716dc 100644
--- a/tests/functional/cli/test_cli_packages.py
+++ b/tests/functional/cli/test_cli_packages.py
@@ -1,7 +1,10 @@
+import pytest
+
package_name = "hello-world"
package_version = "v1.0.0"
file_name = "hello.tar.gz"
file_content = "package content"
+pytestmark = pytest.mark.script_launch_mode("subprocess")
def test_list_project_packages(gitlab_cli, project):
diff --git a/tests/functional/cli/test_cli_v4.py b/tests/functional/cli/test_cli_v4.py
index 91c0afa..e220996 100644
--- a/tests/functional/cli/test_cli_v4.py
+++ b/tests/functional/cli/test_cli_v4.py
@@ -1,6 +1,10 @@
import os
import time
+import pytest
+
+pytestmark = pytest.mark.script_launch_mode("subprocess")
+
def test_create_project(gitlab_cli):
name = "test-project1"
diff --git a/tests/functional/cli/test_cli_variables.py b/tests/functional/cli/test_cli_variables.py
index 9b1b16d..5013856 100644
--- a/tests/functional/cli/test_cli_variables.py
+++ b/tests/functional/cli/test_cli_variables.py
@@ -1,3 +1,8 @@
+import pytest
+
+pytestmark = pytest.mark.script_launch_mode("subprocess")
+
+
def test_list_instance_variables(gitlab_cli, gl):
cmd = ["variable", "list"]
ret = gitlab_cli(cmd)
diff --git a/tox.ini b/tox.ini
index aac7d56..79f3599 100644
--- a/tox.ini
+++ b/tox.ini
@@ -84,9 +84,6 @@ exclude_lines =
if TYPE_CHECKING:
if debug:
-[pytest]
-script_launch_mode = subprocess
-
[testenv:cli_func_v4]
deps = -r{toxinidir}/requirements-docker.txt
commands =