UPDATE
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user