From c15f9836b6ab5e8a7632d99ba2c219cb8a40ecf5 Mon Sep 17 00:00:00 2001 From: JerrettDavis Date: Tue, 21 Apr 2026 00:10:05 -0500 Subject: [PATCH] test(dashboard): fix playwright importorskip placement Move importorskip after playwright import so module-level import error triggers skip rather than collection error. Co-Authored-By: Claude Opus 4.6 --- tests/test_dashboard/test_live_feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_dashboard/test_live_feed.py b/tests/test_dashboard/test_live_feed.py index 171afbcd8..0fb069560 100644 --- a/tests/test_dashboard/test_live_feed.py +++ b/tests/test_dashboard/test_live_feed.py @@ -1,7 +1,7 @@ import pytest -from playwright.sync_api import sync_playwright -pytest.importorskip("playwright", reason="Playwright not installed — dashboard E2E tests skipped") +pytest.importorskip("playwright") +from playwright.sync_api import sync_playwright @pytest.fixture(scope="module")