Skip to content

Commit

Permalink
Updated tests for Django 1.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatohater committed Jul 23, 2015
1 parent e493c48 commit 06ce0f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pgcryptoauth/tests.py
Expand Up @@ -18,9 +18,9 @@ class PgCryptoAuthTests(TestCase):
encoded = u'pgcrypto$%s' % pghash

def setUp(self):
cursor = connection.cursor()
cursor.execute("CREATE EXTENSION pgcrypto")
transaction.commit_unless_managed()
with transaction.atomic():
cursor = connection.cursor()
cursor.execute("CREATE EXTENSION pgcrypto")
self.user = User.objects.create_user(username=self.username)
self.user.password = self.encoded
self.user.save()
Expand Down

0 comments on commit 06ce0f5

Please sign in to comment.