def setUpTestData(cls): cls.template = ReportTemplateFactory() cls.user = UserFactory(password=PASSWORD) cls.uri = reverse("reporting:template_create")
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})
def setUpTestData(cls): cls.template = ReportTemplateFactory() cls.user = UserFactory(password=PASSWORD) cls.uri = reverse("reporting:template_download", kwargs={"pk": cls.template.pk})