This commit is contained in:
2026-05-02 14:03:48 +03:30
parent f704e1188c
commit ef593153ba
14 changed files with 1286 additions and 18 deletions
+7 -1
View File
@@ -30,7 +30,13 @@ class WaterStressApiTests(TestCase):
response = self.client.post(
"/water-stress/",
data={"farm_uuid": "550e8400-e29b-41d4-a716-446655440000"},
data={
"farm_uuid": "550e8400-e29b-41d4-a716-446655440000",
"irrigation_recommendation": {"events": [{"date": "2026-04-25", "amount": 2.5}]},
"fertilization_recommendation": {
"events": [{"date": "2026-04-20", "N_amount": 45, "N_recovery": 0.7}]
},
},
format="json",
)