From 5346367866bdd41d7a397cad55056520ece5fdc5 Mon Sep 17 00:00:00 2001 From: Adam Shimali Date: Thu, 31 Mar 2016 10:14:49 +0100 Subject: [PATCH] updated mock expectations --- tests/app/main/views/test_accept_invite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/app/main/views/test_accept_invite.py b/tests/app/main/views/test_accept_invite.py index a7a9f6b32..39c9d0c1e 100644 --- a/tests/app/main/views/test_accept_invite.py +++ b/tests/app/main/views/test_accept_invite.py @@ -273,6 +273,7 @@ def test_signed_in_existing_user_cannot_use_anothers_invite(app_, flash_banners = page.find_all('div', class_='banner-dangerous') assert len(flash_banners) == 1 assert flash_banners[0].text.strip() == "You can't accept an invite for another person." + assert mock_accept_invite.call_count == 0 def test_signed_out_existing_user_cannot_use_anothers_invite(app_, @@ -304,6 +305,7 @@ def test_signed_out_existing_user_cannot_use_anothers_invite(app_, flash_banners = page.find_all('div', class_='banner-dangerous') assert len(flash_banners) == 1 assert flash_banners[0].text.strip() == "You can't accept an invite for another person." + assert mock_accept_invite.call_count == 0 def test_new_invited_user_verifies_and_added_to_service(app_,