Skip to content

Commit 1776b65

Browse files
author
Kevin Westphal
committed
fix(functests): remove deprecated fixture marks
Applying a mark to a fixture function is deprecated and became a hard error in pytest 9. See https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
1 parent d7055a7 commit 1776b65

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/functional/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def _start_no_quota_gitguardian_api(host: str, port: int):
107107

108108

109109
@pytest.fixture
110-
@pytest.mark.allow_hosts(["localhost"])
111110
def slow_gitguardian_api() -> Generator[str, None, None]:
112111
host, port = "localhost", 8123
113112
server_process = Process(target=_start_slow_gitguardian_api, args=(host, port))
@@ -120,7 +119,6 @@ def slow_gitguardian_api() -> Generator[str, None, None]:
120119

121120

122121
@pytest.fixture
123-
@pytest.mark.allow_hosts(["localhost"])
124122
def no_quota_gitguardian_api() -> Generator[str, None, None]:
125123
host, port = "localhost", 8124
126124
server_process = Process(target=_start_no_quota_gitguardian_api, args=(host, port))

0 commit comments

Comments
 (0)