Skip to content

Commit

Permalink
Test fixture annotation has target array.
Browse files Browse the repository at this point in the history
Update the test fixture to match those created by Mirador, in which
the `on` element contains an array of objects instead of a single
object.
  • Loading branch information
benwbrum committed May 22, 2019
1 parent 3229607 commit 9d05ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/iiif/annotations/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AnnotationTests(APITestCase):

valid_annotation = {
'oa_annotation': '''{
"on": {
"on": [{
"full": "https://digi.vatlib.it/iiif/MSS_Vat.lat.3225/canvas/p0007",
"@type": "oa:SpecificResource",
"selector": {
Expand All @@ -31,7 +31,7 @@ class AnnotationTests(APITestCase):
"@type": "sc:Manifest",
"@id": "https://ecds.emory.edu/iiif/MSS_Vat.lat.3225/manifest.json"
}
},
}],
"@type": "oa:Annotation",
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "13d3b867-d668-4294-b56a-df3e8860016c",
Expand Down

0 comments on commit 9d05ff4

Please sign in to comment.