Skip to content

Commit

Permalink
AdminTestCase: use force_login
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 24, 2017
1 parent 108fa93 commit 54927cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pinax/stripe/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ def setUpClass(cls):
cls.client = Client()

def setUp(self):
self.client.login(username="admin", password="admin")
try:
self.client.force_login(self.user)
except AttributeError:
# Django 1.8
self.client.login(username="admin", password="admin")

def test_customer_admin(self):
"""Make sure we get good responses for all filter options"""
Expand Down

0 comments on commit 54927cb

Please sign in to comment.