Skip to content

Commit

Permalink
Auto install playwright in conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Nov 27, 2024
1 parent 0221585 commit 437f87f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_app/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import os
import subprocess
from pathlib import Path

import pytest
Expand All @@ -11,3 +12,8 @@
@pytest.fixture(autouse=True)
def enable_db_access_for_all_tests(db):
pass


@pytest.fixture(autouse=True, scope="session")
def install_playwright():
subprocess.run(["playwright", "install", "chromium"], check=True)

0 comments on commit 437f87f

Please sign in to comment.