Skip to content
Snippets Groups Projects
Select Git revision
  • a02bdcf5fde7a1670ef81cd5ba53af7abb6bcd3d
  • demo_ci_gitlab_pages default
  • demo_gitlab_ci
  • 5-images-in-annotations
  • 5-final-images
  • 5-chpk-images-in-annot
  • tetras-main protected
  • 5-rebase-images-in-annot
  • 5-wip-images-in-annot
  • tmp
  • 1-edit-annotations-on-videos
  • 5-old-images-in-annotations
  • old_demo_ci_gitlab_pages
  • images_annotations
  • wip
  • devsetup
  • wip-annot-video-ui
  • wip-annotations-on-videos
  • master
  • v0.4.0_react16
  • wip-debugging-annotations
21 results

AnnotationCreation.js

Blame
  • Forked from IIIF / Mirador / Mirador annotations
    Source project has a limited visibility.
    test_mirador_resource.py 570 B
    import unittest
    import json
    
    from Mirador_backend import app
    
    
    class MiradorResourceTest(unittest.TestCase):
        def setup(self):
            self.base = '/mirador_resource'
            self.app = app.test_client
            self.db = None  # Todo
    
        def testGet(self):
            payload = json.dumps({})
            response = self.app.get(self.base + '/1', headers={"Content-Type": "application/json"}, data=payload)
    
            self.assertEqual(200, response.status_code)
            self.assertEqual('get', response.json['method'])
            self.assertEqual(str, type(response.json['id']))