Commits

Kai Diefenbach  committed 7b71ced

Fixed tests

  • Participants
  • Parent commits bc095d2

Comments (0)

Files changed (5)

File lfc/tests/copy_tests.py

     fixtures = ["superuser.xml"]
 
     def setUp(self):
-        from lfc.utils.init import register
-        register()
+        from lfc.utils.initialize import initialize
+        initialize()
 
         Portal.objects.create(id=1)
         self.p1 = Page.objects.create(id=1, title="Page 1", slug="page-1")

File lfc/tests/page_tests.py

     def setUp(self):
         """
         """
-        from lfc.utils.init import register
-        register()
+        from lfc.utils.initialize import initialize
+        initialize()
 
         self.p = Portal.objects.create()
         self.p1 = Page.objects.create(title="Page 1", slug="page-1")

File lfc/tests/portal_tests.py

     def setUp(self):
         """
         """
-        from lfc.utils.init import register
-        register()
+        from lfc.utils.initialize import initialize
+        initialize()
 
         self.p = Portal.objects.create()
         self.p.notification_emails = "john@doe.com, jane@doe.com"

File lfc/tests/registration_tests.py

     def setUp(self):
         """
         """
-        from lfc.utils.init import register
-        register()
+        from lfc.utils.initialize import initialize
+        initialize()
 
     def test_default_portlets(self):
         """Portlets which have to be registered at least.

File lfc/tests/utils_tests.py

     def setUp(self):
         """
         """
-        from lfc.utils.init import register
-        register()
+        from lfc.utils.initialize import initialize
+        initialize()
         
         Portal.objects.create()
         self.p1 = Page.objects.create(title="Page 1", slug="page-1")