testing-html-merge #15

Merged
dan merged 8 commits from testing-html-merge into dev 2023-12-09 15:28:50 +01:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit b041145c03 - Show all commits

View file

@ -53,3 +53,6 @@ target-version = "py311"
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()