Commit bbab3a39 by Calen Pennington

Merge pull request #7127 from edx/django-upgrade/reload-user-session-in-test

Reload the user to get the cached profile attribute
parents bee58106 3d8e1d09
......@@ -195,6 +195,9 @@ class LoginTest(TestCase):
response = client1.post(self.url, creds)
self._assert_response(response, success=True)
# Reload the user from the database
self.user = UserFactory.FACTORY_FOR.objects.get(pk=self.user.pk)
self.assertEqual(self.user.profile.get_meta()['session_id'], client1.session.session_key)
# second login should log out the first
......
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