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 26a643e commit 27b937f
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 @@ -1639,6 +1639,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 @@ -1668,6 +1669,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 27b937f

Please sign in to comment.