예제 #1
0
 def setUp(self):
     ViewMixinAPISuperuser.setUp(self)
     self.urls = ['/api/0/data-types/1/', '/api/0/data-types/2/']
     self.view = views.DataTypeViewSet.as_view({'get': 'detail'})
예제 #2
0
 def setUp(self):
     ViewMixinAPISuperuser.setUp(self)
     self.urls = ['/api/0/overlay-sources/']
     self.view = views.OverlaySourceViewSet.as_view({'get': 'list'})
예제 #3
0
 def setUp(self):
     ViewMixinAPISuperuser.setUp(self)
     self.urls = ['/api/0/overlay-types/']
     self.view = views.OverlayTypeViewSet.as_view({'get': 'list'})
예제 #4
0
 def setUp(self):
     ViewMixinAPISuperuser.setUp(self)
     self.urls = ['/api/0/tiles/1/', '/api/0/tiles/2/', '/api/0/tiles/3/']
     self.view = views.TileViewSet.as_view({'get': 'detail'})
예제 #5
0
 def setUp(self):
     ViewMixinAPISuperuser.setUp(self)
     self.urls = ['/api/0/tiles/']
     self.view = views.TileViewSet.as_view({'get': 'list'})
예제 #6
0
 def setUp(self):
     ViewMixinAPISuperuser.setUp(self)
     self.urls = ['/api/0/data-types/1/', '/api/0/data-types/2/']
     self.view = views.DataTypeViewSet.as_view({'get': 'detail'})
예제 #7
0
 def setUp(self):
     ViewMixinAPISuperuser.setUp(self)
     self.urls = ['/api/0/overlay-sources/1/', '/api/0/overlay-sources/2/']
     self.view = views.OverlaySourceViewSet.as_view({'get': 'detail'})