-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AT-2461] implement get feasibility endpoint (#431)
* initial commit: get_feasibility * add feasibility response * add function to decided feasibility option * wip: tests * wip: add assertions for live tests * update global variable name * add tests and mock responses for feasibility endpoint * disable pylint for too long line * PR suggestions; linting; live test env vars * add mock for decision param * fotgot to add mock response json * split long line into 2 lines * add test for wrong decision param
- Loading branch information
Showing
9 changed files
with
1,156 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
tests/mock_data/tasking_data/get_feasibility_NOT_DECIDED.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"content": [ | ||
{ | ||
"id": "f3fa5e07-a156-4eb1-9f25-07a2fa68a2b1", | ||
"createdAt": "2023-06-14T01:02:24.410534Z", | ||
"updatedAt": "2023-06-14T01:02:24.410534Z", | ||
"accountId": "3c86279b-610a-4dba-ad12-abe3bdc51428", | ||
"workspaceId": "eb1626d2-8015-43e9-acab-fbfaee89466c", | ||
"orderId": "1f82558b-a235-47f8-9965-9128f4bd0156", | ||
"type": "MANUAL", | ||
"options": [ | ||
{ | ||
"id": "e24b289d-25b0-456b-ae47-0046a76babec", | ||
"createdAt": "2023-06-14T01:02:25.465404Z", | ||
"updatedAt": "2023-06-14T01:02:25.465404Z", | ||
"studyId": "f3fa5e07-a156-4eb1-9f25-07a2fa68a2b1", | ||
"description": "Option 1: Extend dates" | ||
}, | ||
{ | ||
"id": "7859ae61-9ec9-447b-962e-a84fcea9f683", | ||
"createdAt": "2023-06-14T01:02:43.274035Z", | ||
"updatedAt": "2023-06-14T01:02:56.732208Z", | ||
"studyId": "f3fa5e07-a156-4eb1-9f25-07a2fa68a2b1", | ||
"description": "Option 2: increase cloud cover percentage" | ||
} | ||
], | ||
"decision": "NOT_DECIDED", | ||
"decisionById": null, | ||
"decisionByType": null, | ||
"decisionAt": null, | ||
"decisionOption": null | ||
} | ||
], | ||
"pageable": { | ||
"sort": { | ||
"sorted": true, | ||
"unsorted": false, | ||
"empty": false | ||
}, | ||
"pageNumber": 0, | ||
"pageSize": 10, | ||
"offset": 0, | ||
"unpaged": false, | ||
"paged": true | ||
}, | ||
"totalPages": 1, | ||
"totalElements": 1, | ||
"last": true, | ||
"sort": { | ||
"sorted": true, | ||
"unsorted": false, | ||
"empty": false | ||
}, | ||
"numberOfElements": 1, | ||
"first": true, | ||
"size": 10, | ||
"number": 0, | ||
"empty": false | ||
} |
Oops, something went wrong.