#31 API Tests
* adds creation tests with minimum data for intervention, compensation, ema and ecoaccount * fixes bug where empty geometry would not be created properly using the API * reworks key fetching from POST data, so inproperly stated keys will lead to an error for the API user, instead of silently working and use default data * adds some logical checks for deductable_surface of eco account creation using api * fixes bug that would have occured on creating compensations via api
This commit is contained in:
19
api/tests/v1/create/compensation_create_post_body.json
Normal file
19
api/tests/v1/create/compensation_create_post_body.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"type": "MultiPolygon",
|
||||
"coordinates": [
|
||||
],
|
||||
"properties": {
|
||||
"title": "Test_compensation",
|
||||
"is_cef": false,
|
||||
"is_coherence_keeping": false,
|
||||
"intervention": "MUST_BE_SET_IN_TEST",
|
||||
"before_states": [
|
||||
],
|
||||
"after_states": [
|
||||
],
|
||||
"actions": [
|
||||
],
|
||||
"deadlines": [
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user