Commits

lior...@gmail.com  committed 2863f7b

fixed registration tests when no sites installed

  • Participants
  • Parent commits 248d8bd

Comments (0)

Files changed (1)

File registration/tests/backends.py

         be a ``RequestSite`` instance.
         
         """
+        
+        # this test is only needed if site is installed, and can't work otherwise
+        if not Site._meta.installed:
+            return
+        
         Site._meta.installed = False
 
         new_user = self.backend.register(_mock_request(),