Skip to content

Commit affaa97

Browse files
SoloJacobsroberfi
authored andcommitted
gui_e2e: remove warning when executing tests
A pytext fixture cannot be marked with another fixture. Pytest warns about this error like so: ``` .venv/lib/python3.12/site-packages/_pytest/fixtures.py:1313 /home/solomonjacobs/g/check_mk/.venv/lib/python3.12/site-packages/_pytest/fixtures.py:1313: PytestRemovedIn9Warning: Marks applied to fixtures have no effect See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function return fixture_marker(fixture_function) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ``` Change-Id: Iac15b5a071967e396842e1bf36c07791196d482f
1 parent 0cdf205 commit affaa97

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tests/gui_e2e/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def _navigate_to_dashboard(
115115

116116

117117
@pytest.fixture(name="new_browser_context_and_page")
118-
@pytest.mark.browser_context_args
119118
def fixture_new_browser_context_and_page(
120119
context: BrowserContext,
121120
) -> Iterator[tuple[BrowserContext, Page]]:

tests/gui_e2e/testlib/playwright/plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def fixture_browser_storage_stage() -> StorageState:
5454

5555

5656
@pytest.fixture
57-
@pytest.mark.browser_context_args
5857
def cmk_page(
5958
new_context: CreateContextCallback, browser_storage_state: StorageState
6059
) -> Iterator[Page]:

0 commit comments

Comments
 (0)