Skip to content

Commit

Permalink
[ft #145186309] Remove querries in test_login.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ONYANGO JACKSON JOHN authored and ONYANGO JACKSON JOHN committed May 19, 2017
1 parent 2e8b128 commit dd65380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hc/accounts/tests/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ def test_it_sends_link(self):
### Assert contents of the email body
self.assertTrue(mail.outbox[0].body)
### Assert that check is associated with the new user
self.assertEqual(session["welcome_code"].replace('-', ''),
Check.objects.filter(user_id=1)[0].code.hex)
check2 = Check.objects.get(code=check.code)
self.assertTrue(check2.user)


def test_it_pops_bad_link_from_session(self):
self.client.session["bad_link"] = True
Expand Down

0 comments on commit dd65380

Please sign in to comment.