add slow marker

This commit is contained in:
Daniel 2023-12-09 15:26:24 +01:00
parent c1ebcf84c2
commit b041145c03
2 changed files with 5 additions and 2 deletions

View file

@ -52,4 +52,7 @@ target-version = "py311"
[tool.pytest.ini_options] [tool.pytest.ini_options]
python_functions = "setup_* test_* cleanup_*" python_functions = "setup_* test_* cleanup_*"
norecursedirs = ".* previous-work recipes" norecursedirs = ".* previous-work recipes"
testpaths = "tests" testpaths = "tests"
markers = [
"slow: marks tests as slow",
]

View file

@ -1,7 +1,6 @@
# tmp_path fixture: # tmp_path fixture:
# https://docs.pytest.org/en/6.2.x/tmpdir.html # https://docs.pytest.org/en/6.2.x/tmpdir.html
import os
from pathlib import Path from pathlib import Path
import pytest import pytest
@ -34,6 +33,7 @@ def test_merge_html(session_tmp_path: Path):
assert next(out_assets_dir.glob("*")) assert next(out_assets_dir.glob("*"))
@pytest.mark.slow
def test_check_result_with_playwright(session_tmp_path, context: BrowserContext): def test_check_result_with_playwright(session_tmp_path, context: BrowserContext):
html_file = session_tmp_path / "test.html" html_file = session_tmp_path / "test.html"
file_url = BaseUrl(netloc=html_file.as_posix(), scheme="file").get() file_url = BaseUrl(netloc=html_file.as_posix(), scheme="file").get()