Skip to content

Commit 437f87f

Browse files
committed
Auto install playwright in conftest
1 parent 0221585 commit 437f87f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_app/tests/conftest.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import os
4+
import subprocess
45
from pathlib import Path
56

67
import pytest
@@ -11,3 +12,8 @@
1112
@pytest.fixture(autouse=True)
1213
def enable_db_access_for_all_tests(db):
1314
pass
15+
16+
17+
@pytest.fixture(autouse=True, scope="session")
18+
def install_playwright():
19+
subprocess.run(["playwright", "install", "chromium"], check=True)

0 commit comments

Comments
 (0)