From b041145c03ca56841067301b8fe51f67b519c007 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 9 Dec 2023 15:26:24 +0100 Subject: [PATCH] add slow marker --- pyproject.toml | 5 ++++- tests/test_html_merge.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a63e9dd..d436714 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,4 +52,7 @@ target-version = "py311" [tool.pytest.ini_options] python_functions = "setup_* test_* cleanup_*" norecursedirs = ".* previous-work recipes" -testpaths = "tests" \ No newline at end of file +testpaths = "tests" +markers = [ + "slow: marks tests as slow", +] \ No newline at end of file diff --git a/tests/test_html_merge.py b/tests/test_html_merge.py index b453e8b..d97ab83 100644 --- a/tests/test_html_merge.py +++ b/tests/test_html_merge.py @@ -1,7 +1,6 @@ # tmp_path fixture: # https://docs.pytest.org/en/6.2.x/tmpdir.html -import os from pathlib import Path import pytest @@ -34,6 +33,7 @@ def test_merge_html(session_tmp_path: Path): assert next(out_assets_dir.glob("*")) +@pytest.mark.slow def test_check_result_with_playwright(session_tmp_path, context: BrowserContext): html_file = session_tmp_path / "test.html" file_url = BaseUrl(netloc=html_file.as_posix(), scheme="file").get()