Updates for review comments.

Simplify mocker in parameterised tests.
Fix duplicate test name.
This commit is contained in:
Rebecca Law
2016-10-03 14:26:36 +01:00
parent 9e7a7b1857
commit f0772fe06b
2 changed files with 29 additions and 79 deletions

View File

@@ -559,9 +559,9 @@ def test_fetch_weekly_historical_stats_separates_types(notify_db,
assert ret[1].notification_type == 'sms'
def test_dao_fetch_todays_total_message_count_returns_0_when_no_messages_for_today(notify_db,
notify_db_session,
sample_notification):
def test_dao_fetch_todays_total_message_count_returns_count_for_today(notify_db,
notify_db_session,
sample_notification):
assert fetch_todays_total_message_count(sample_notification.service.id) == 1