Ejemplo n.º 1
0
    def setUp(self):
        self.user = self.__create_test_user("user", "pass", True)
        self.client = Client()

        init_ella_workflow(get_all_resource_classes())
        create_basic_categories(self)

        Article.objects.create(title="Jop", slug="jop", category=self.category,
            publish_from=timezone.now())
        Article.objects.create(title="Spinach", category=self.category_nested,
            publish_from=timezone.now(), slug="spinach")
        Article.objects.create(title="Jop3", category=self.category,
            publish_from=timezone.now(), slug="jop3")
Ejemplo n.º 2
0
 def setUp(self):
     init_ella_workflow(get_all_resource_classes())
     self.user = self.__create_test_user("user", "pass", is_admin=True)
     create_basic_categories(self)
     self.article = Article.objects.create(title="Art title",
         category=self.category, publish_from=timezone.now(), slug="article")
Ejemplo n.º 3
0
 def setUp(self):
     self.user = self.__create_test_user("user", "pass", True)
     self.client = Client()
     create_advanced_workflow(self, get_all_resource_classes())
Ejemplo n.º 4
0
 def setUp(self):
     init_ella_workflow(get_all_resource_classes())
     self.user = self.__create_test_user("user", "pass", True)
     self.client = Client()