Skip to content
Snippets Groups Projects
Select Git revision
  • 0ce9b7821e0d3f2ac0fc0b733ce743c831727df9
  • annotation-on-video default protected
  • demo_ci
  • 3-upstream-01022023
  • master
  • gh3538-captions
  • 16-adapt-for-images-annot
  • 15-api-for-annotations-on-video
  • 15-annotations-on-videos
  • video_for_annotations
  • wip-1-annotations-on-videos
  • 9-videoviewer-tests
  • 9_wip_videotests
  • 6-fix-tests-and-ci
  • _fix_ci
  • wip-webpack-from-git
16 results

CanvasAnnotationDisplay.js

Blame
  • 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']))