Esempio n. 1
0
 def setUp(self):
     ViewMixin.setUp(self, load_fixtures=False)
     self.urls = [
         '/profile/projects/1/share/',
         '/profile/projects/1/share/embed/',
         '/profile/projects/create/',
         '/profile/projects/create/embed/'
     ]
     self.view = sharing.create_update_group_with_sharing
Esempio n. 2
0
 def setUp(self):
     ViewMixin.setUp(self)
     self.urls = [
         '/upload/',
         '/upload/map-images/',
         '/upload/embed/',
         '/upload/map-images/embed/'
     ]
     self.view = uploader.init_upload_form
Esempio n. 3
0
 def setUp(self):
     ViewMixin.setUp(self, load_fixtures=True)
     self.form = self.create_form(name="Class Form")
     self.urls = [
         '/profile/forms/%s/' % self.form.id,
         '/profile/forms/%s/embed/' % self.form.id,
         '/profile/forms/create/',
         '/profile/forms/create/embed/'
     ]
     self.view = forms.create_update_form
Esempio n. 4
0
 def setUp(self):
     ViewMixin.setUp(self, load_fixtures=True)
     self.urls = [
         "/profile/photos/",
         "/profile/audio/",
         "/profile/prints/",
         "/profile/map-images/",
         "/profile/forms/",
     ]
     self.view = profile.object_list_form
 def setUp(self):
     ViewMixin.setUp(self)
     self.map = self.create_styled_map()
     self.urls = ['/maps/{0}/'.format(self.map.slug)]
     self.url = self.urls[0]
     self.view = PublicView.as_view(template_name='pages/presentation.html')
Esempio n. 6
0
 def setUp(self):
     ViewMixin.setUp(self)
     self.urls = ['/maps/edit/new/']
     self.view = maps.show_map_editor_new
Esempio n. 7
0
 def setUp(self):
     ViewMixin.setUp(self)
     self.map = self.create_styled_map()
     self.urls = ['/maps/{0}/'.format(self.map.slug)]
     self.url = self.urls[0]
     self.view = PublicView.as_view(template_name='pages/presentation.html')
Esempio n. 8
0
 def setUp(self):
     ViewMixin.setUp(self)
     self.urls = ['/profile/prints/']
     self.view = profile.object_list_form