Drop tests that only exercised FastAPI and a fake

This commit is contained in:
Roberto Treviño
2026-11-24 17:48:18 -06:00
parent df921f13cd
commit cddf91185b
-26
View File
@@ -1,26 +0,0 @@
from dagster import DagsterRunStatus
from fastapi.testclient import TestClient
from webapi.main import app, dagster
class FakeDagster:
def get_run_status(self, run_id):
return DagsterRunStatus.SUCCESS
def test_health():
assert TestClient(app).get("/health").json() == {"status": "ok"}
def test_run_status_reads_dagster():
app.dependency_overrides[dagster] = FakeDagster
try:
r = TestClient(app).get("/runs/abc")
finally:
app.dependency_overrides.clear()
assert r.json() == {"id": "abc", "status": "SUCCESS"}
def test_domains():
assert TestClient(app).get("/domains").json() == ["cacu", "cama", "tea"]