Skip to content

Commit 05ea611

Browse files
chore: remove pytest-console-scripts specific config
Remove the pytest-console-scripts specific config from the global '[pytest]' config section. Make the configuration be a per-module setting in each of the three files that use the pytest-console-scripts plugin. Closes #1713
1 parent 3225f2c commit 05ea611

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

tests/functional/cli/test_cli_packages.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import pytest
2+
13
package_name = "hello-world"
24
package_version = "v1.0.0"
35
file_name = "hello.tar.gz"
46
file_content = "package content"
7+
pytestmark = pytest.mark.script_launch_mode("subprocess")
58

69

710
def test_list_project_packages(gitlab_cli, project):

tests/functional/cli/test_cli_v4.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import os
22
import time
33

4+
import pytest
5+
6+
pytestmark = pytest.mark.script_launch_mode("subprocess")
7+
48

59
def test_create_project(gitlab_cli):
610
name = "test-project1"

tests/functional/cli/test_cli_variables.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import pytest
2+
3+
pytestmark = pytest.mark.script_launch_mode("subprocess")
4+
5+
16
def test_list_instance_variables(gitlab_cli, gl):
27
cmd = ["variable", "list"]
38
ret = gitlab_cli(cmd)

tox.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ exclude_lines =
8484
if TYPE_CHECKING:
8585
if debug:
8686

87-
[pytest]
88-
script_launch_mode = subprocess
89-
9087
[testenv:cli_func_v4]
9188
deps = -r{toxinidir}/requirements-docker.txt
9289
commands =

0 commit comments

Comments
 (0)