Example #1
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_add_url = reverse('add_grid')
     self.test_edit_url = reverse('edit_grid', kwargs={'slug': 'testing'})
     self.login = self.client.login(username='******', password='******')
     self.user = User.objects.get(username='******')
Example #2
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_add_url = reverse('add_grid')
     self.test_edit_url = reverse('edit_grid', kwargs={'slug': 'testing'})
     self.login = self.client.login(username='******', password='******')
     self.user = User.objects.get(username='******')
Example #3
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_add_url = reverse("add_grid")
     self.test_edit_url = reverse("edit_grid", kwargs={"slug": "testing"})
     self.login = self.client.login(username="******", password="******")
     self.user = User.objects.get(username="******")
Example #4
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_edit_url = reverse('edit_element',
                                  kwargs={'feature_id': '1',
                                          'package_id': '1'})
     self.login = self.client.login(username='******', password='******')
     self.user = User.objects.get(username='******')
Example #5
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_add_url = reverse("add_grid_package", kwargs={"grid_slug": "testing"})
     self.test_add_new_url = reverse("add_new_grid_package", kwargs={"grid_slug": "testing"})
     self.test_delete_url = reverse("delete_grid_package", kwargs={"id": "1"})
     self.login = self.client.login(username="******", password="******")
     self.user = User.objects.get(username="******")
Example #6
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_add_url = reverse('add_grid_package',
                                 kwargs={'grid_slug': 'testing'})
     self.test_add_new_url = reverse('add_new_grid_package',
                                     kwargs={'grid_slug': 'testing'})
     self.test_delete_url = reverse('delete_grid_package',
                                    kwargs={'id': '1'})
     self.login = self.client.login(username='******', password='******')
     self.user = User.objects.get(username='******')
Example #7
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_add_url = reverse('add_grid_package',
                                 kwargs={'grid_slug': 'testing'})
     self.test_add_new_url = reverse('add_new_grid_package',
                                     kwargs={'grid_slug': 'testing'})
     self.test_delete_url = reverse('delete_grid_package',
                                    kwargs={'id': '1'})
     self.login = self.client.login(username='******', password='******')
     self.user = User.objects.get(username='******')
Example #8
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = False
 def setUp(self):
     Grid.objects.all().delete()
     data.load()
     settings.RESTRICT_GRID_EDITORS = False
Example #10
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = False
Example #11
0
 def setUp(self):
     Grid.objects.all().delete()
     data.load()
     settings.RESTRICT_GRID_EDITORS = False
Example #12
0
 def setUp(self):
     data.load()
     settings.RESTRICT_GRID_EDITORS = True
     self.test_edit_url = reverse("edit_element", kwargs={"feature_id": "1", "package_id": "1"})
     self.login = self.client.login(username="******", password="******")
     self.user = User.objects.get(username="******")