UPDATE
This commit is contained in:
@@ -278,16 +278,6 @@ class ReportingAndAiJourneyTests(IntegrationAPITestCase):
|
||||
},
|
||||
)
|
||||
)
|
||||
stack.enter_context(
|
||||
patch(
|
||||
"pest_disease.services.build_pest_disease_risk_summary",
|
||||
return_value={
|
||||
"riskLevel": "medium",
|
||||
"headline": "Watch humidity trend",
|
||||
"items": [{"title": "Powdery mildew", "severity": "medium"}],
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
chat_response = self.client.post(
|
||||
"/api/rag/chat/",
|
||||
@@ -357,14 +347,6 @@ class ReportingAndAiJourneyTests(IntegrationAPITestCase):
|
||||
)
|
||||
self.assertEqual(pest_risk_response.status_code, 200)
|
||||
|
||||
pest_summary_response = self.client.post(
|
||||
"/api/pest-disease/risk-summary/",
|
||||
data={"farm_uuid": str(self.farm_uuid)},
|
||||
format="json",
|
||||
)
|
||||
self.assertEqual(pest_summary_response.status_code, 200)
|
||||
self.assertEqual(pest_summary_response.json()["data"]["riskLevel"], "medium")
|
||||
|
||||
def test_alert_and_crop_simulation_endpoints_persist_records(self) -> None:
|
||||
def tracker_stub(*, farm_uuid: str, query: str | None = None):
|
||||
from farm_alerts.services import _save_notifications, _serialize_notification
|
||||
|
||||
Reference in New Issue
Block a user