Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05ea611

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 threefiles that use the pytest-console-scripts plugin.Closes#1713
1 parent3225f2c commit05ea611

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+
importpytest
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
deftest_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
importos
22
importtime
33

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

59
deftest_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+
importpytest
2+
3+
pytestmark=pytest.mark.script_launch_mode("subprocess")
4+
5+
16
deftest_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)

[8]ページ先頭

©2009-2025 Movatter.jp