-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1788] Include submissions in cases
- Loading branch information
Showing
18 changed files
with
169 additions
and
326 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
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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from zgw_consumers.test import mock_service_oas_get | ||
|
||
from open_inwoner.openzaak.tests.shared import FORMS_ROOT | ||
|
||
|
||
class ESuiteData: | ||
def __init__(self): | ||
self.submission_1 = { | ||
"url": "https://dmidoffice2.esuite-development.net/formulieren-provider/api/v1/8e3ae29c-7bc5-4f7d-a27c-b0c83c13328e", | ||
"uuid": "8e3ae29c-7bc5-4f7d-a27c-b0c83c13328e", | ||
"naam": "Melding openbare ruimte", | ||
"vervolgLink": "https://dloket2.esuite-development.net/formulieren-nieuw/formulier/start/8e3ae29c-7bc5-4f7d-a27c-b0c83c13328e", | ||
"datumLaatsteWijziging": "2023-02-13T14:02:00.999+01:00", | ||
"eindDatumGeldigheid": "2023-05-14T14:02:00.999+02:00", | ||
} | ||
self.submission_2 = { | ||
"url": "https://dmidoffice2.esuite-development.net/formulieren-provider/api/v1/d14658b0-dcb4-4d3c-a61c-fd7d0c78f296", | ||
"uuid": "d14658b0-dcb4-4d3c-a61c-fd7d0c78f296", | ||
"naam": "Indienen bezwaarschrift", | ||
"vervolgLink": "https://dloket2.esuite-development.net/formulieren-nieuw/formulier/start/d14658b0-dcb4-4d3c-a61c-fd7d0c78f296", | ||
"datumLaatsteWijziging": "2023-02-13T14:10:26.197000+0100", | ||
"eindDatumGeldigheid": "2023-05-14T14:10:26.197+02:00", | ||
} | ||
# note this is a weird esuite response without pagination links | ||
self.response = { | ||
"count": 2, | ||
"results": [ | ||
self.submission_1, | ||
self.submission_2, | ||
], | ||
} | ||
|
||
def setUpOASMocks(self, m): | ||
mock_service_oas_get(m, FORMS_ROOT, "submissions-esuite") | ||
|
||
def install_mocks(self, m): | ||
self.setUpOASMocks(m) | ||
m.get( | ||
f"{FORMS_ROOT}openstaande-inzendingen", | ||
json=self.response, | ||
) | ||
return self |
Oops, something went wrong.