This commit is contained in:
2026-05-13 22:28:56 +03:30
parent 46fe62fa04
commit 45fee1dfd3
26 changed files with 2329 additions and 878 deletions
@@ -11,6 +11,7 @@ from django.test import override_settings
from crop_simulation.models import SimulationRun, SimulationScenario
from farm_alerts.models import FarmAlertNotification
from farm_data.models import SensorData
from farm_data.services import assign_farm_plants_from_backend_ids
from integration_tests.base import IntegrationAPITestCase, square_boundary
@@ -79,7 +80,7 @@ class ReportingAndAiJourneyTests(IntegrationAPITestCase):
}
},
)
neighbor_sensor.plants.set([self.primary_plant["id"]])
assign_farm_plants_from_backend_ids(neighbor_sensor, [self.primary_plant["id"]])
def test_reporting_endpoints_read_from_persisted_farm_context(self) -> None:
soil_response = self.client.get(