Commits

Peter Sanchez  committed 9c3977c

Fix broken tests for Py3k

  • Participants
  • Parent commits e7f3640

Comments (0)

Files changed (2)

File impersonate/tests.py

     def setUp(self):
         from impersonate.middleware import ImpersonateMiddleware
 
-        self.superuser = UserFactory(username='superuser', is_superuser=True)
-        self.user = UserFactory(username='regular')
+        self.superuser = UserFactory.create(
+            username='superuser',
+            is_superuser=True,
+        )
+        self.user = UserFactory.create(username='regular')
         self.factory = RequestFactory()
         self.middleware = ImpersonateMiddleware()
 
 
 [testenv:py3.3-django1.5]
 basepython = python3.3
-deps = django==1.5
+deps = django==1.5.1
 
 [testenv:py2.7-django1.5]
 basepython = python2.7
-deps = django==1.5
+deps = django==1.5.1
        factory-boy==1.3.0
 
 [testenv:py2.7-django1.4]
 
 [testenv:py2.6-django1.5]
 basepython = python2.6
-deps = django==1.5
+deps = django==1.5.1
        factory-boy==1.3.0
 
 [testenv:py2.6-django1.4]