forked from Rockachopa/Timmy-time-dashboard
Remove unused deps from poetry build, speed test suite to ~16s (#130)
This commit is contained in:
committed by
GitHub
parent
f2dacf4ee0
commit
e8f1dea3ec
@@ -13,7 +13,6 @@ try:
|
||||
from . import conftest_markers # noqa: F401
|
||||
except ImportError:
|
||||
import conftest_markers # noqa: F401
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
# ── Stub heavy optional dependencies so tests run without them installed ──────
|
||||
# Uses setdefault: real module is used if already installed, mock otherwise.
|
||||
@@ -134,6 +133,7 @@ def cleanup_event_loops():
|
||||
@pytest.fixture
|
||||
def client():
|
||||
"""FastAPI test client with fresh app instance."""
|
||||
from fastapi.testclient import TestClient
|
||||
from dashboard.app import app
|
||||
with TestClient(app) as c:
|
||||
yield c
|
||||
|
||||
Reference in New Issue
Block a user