Skip to content
Browse files

adds staff to create user condition in setUp

  • Loading branch information...
1 parent 1e880f5 commit 6f4b5d14bf4342068e1784e388315503fe858a03 @elbaschid committed Sep 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 oscar/test/__init__.py
View
2 oscar/test/__init__.py
@@ -77,7 +77,7 @@ class WebTestCase(WebTest):
def setUp(self):
self.user = None
- if not self.is_anonymous:
+ if not self.is_anonymous or self.is_staff:
self.user = User.objects.create(
username=self.username, email=self.email,
password=self.password, is_staff=self.is_staff)

0 comments on commit 6f4b5d1

Please sign in to comment.
Something went wrong with that request. Please try again.