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='******')
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="******")
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='******')
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="******")
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='******')
def setUp(self): data.load() settings.RESTRICT_GRID_EDITORS = False
def setUp(self): Grid.objects.all().delete() data.load() settings.RESTRICT_GRID_EDITORS = False
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="******")