Beispiel #1
0
 def setUpTestData(cls):
     cls.template = ReportTemplateFactory()
     cls.user = UserFactory(password=PASSWORD)
     cls.uri = reverse("reporting:template_create")
Beispiel #2
0
 def setUpTestData(cls):
     cls.template = ReportTemplateFactory(protected=True)
     cls.user = UserFactory(password=PASSWORD)
     cls.admin_user = UserFactory(password=PASSWORD, is_staff=True)
     cls.uri = reverse("reporting:template_update", kwargs={"pk": cls.template.pk})
Beispiel #3
0
 def setUpTestData(cls):
     cls.template = ReportTemplateFactory()
     cls.user = UserFactory(password=PASSWORD)
     cls.uri = reverse("reporting:template_download", kwargs={"pk": cls.template.pk})