fix: add @classmethod and use cls in tests/test_generate_form.py

Co-authored-by: seahaven-openswe[bot] <296972425+seahaven-openswe[bot]@users.noreply.github.com>
This commit is contained in:
Adam Moussa 2026-07-30 20:12:56 -04:00 • committed by GitHub
parent 2df66fd36f
commit bb1107ad7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -323,8 +323,9 @@ class TestGenerateFormPlaywright:
class TestGenerateFormGooglePlaywright:
@classmethod
@pytest.fixture(scope="class")
def signed_in_admin_page(self, tmp_path_factory):
def signed_in_admin_page(cls, tmp_path_factory):
try:
from playwright.sync_api import sync_playwright
except ImportError as exc: # pragma: no cover