Skip to content

Commit

Permalink
✅ test document.verschijningsvorm
Browse files Browse the repository at this point in the history
  • Loading branch information
annashamray committed Aug 17, 2023
1 parent 08cbbbf commit 7adae24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test_app/cmis_mapper.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"link": "drc:document__link",
"creatiedatum": "drc:document__creatiedatum",
"lock": "drc:document__lock",
"verschijningsvorm": "drc:document__verschijningsvorm",
"kopie_van": "drc:kopie_van"
},
"OBJECTINFORMATIEOBJECT_MAP": {
Expand Down
2 changes: 2 additions & 0 deletions tests/test_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,7 @@ def test_create_document_with_content(self):
"link": "https://drc.utrechtproeftuin.nl/api/v1/enkelvoudiginformatieobjecten/d06f86e0-1c3a-49cf-b5cd-01c079cf8147/download",
"beschrijving": "test_beschrijving",
"vertrouwelijkheidaanduiding": "openbaar",
"verschijningsvorm": "test vorm",
}
content = io.BytesIO(b"some file content")

Expand Down Expand Up @@ -1670,6 +1671,7 @@ def test_create_document_with_content(self):
)
self.assertEqual(document.beschrijving, "test_beschrijving")
self.assertEqual(document.vertrouwelijkheidaanduiding, "openbaar")
self.assertEqual(document.verschijningsvorm, "test vorm")

self.assertIsNotNone(document.contentStreamId)
self.assertEqual(document.contentStreamLength, len("some file content"))
Expand Down

0 comments on commit 7adae24

Please sign in to comment.