Commit 3c2d64d8 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Update tests

Enforce Group entries flush. As a fix to strange errors raised while running
tests using sqlite database. The driver doesn't seem to be able to properly
cleanup related database entries, a procedure that takes place after each
execution of a TransactionTestCase test.
parent 78db7da9
......@@ -964,6 +964,7 @@ class TestAuthProviderViews(TestCase):
login_data = {'username': 'olduser@synnefo.org', 'password': 'password'}
r = cl_olduser.post('/im/local', login_data, follow=True)
self.assertContains(r, "href='/im/login/shibboleth'>Academic login")
Group.objects.all().delete()
class TestAuthProvidersAPI(TestCase):
......@@ -1052,6 +1053,7 @@ class TestAuthProvidersAPI(TestCase):
self.assertEqual(sorted(user.groups.values_list('name', flat=True)),
sorted([u'group-create', u'group1', u'group2',
u'localgroup']))
Group.objects.all().delete()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment