reading messages for inbox from new most_recent endpoint

avoids us having to work out and display most recent messages
only on the front-end - it's now all done in api
This commit is contained in:
chrisw
2018-04-04 15:57:31 +01:00
parent 1d32c766e8
commit 78d16709d6
4 changed files with 44 additions and 10 deletions

View File

@@ -180,7 +180,7 @@ def test_inbox_showing_inbound_messages(
mock_get_detailed_service,
mock_get_template_statistics,
mock_get_usage,
mock_get_inbound_sms,
mock_get_most_recent_inbound_sms,
index,
expected_row,
):
@@ -208,7 +208,7 @@ def test_get_inbound_sms_shows_page_links(
mock_get_detailed_service,
mock_get_template_statistics,
mock_get_usage,
mock_get_inbound_sms,
mock_get_most_recent_inbound_sms,
mock_get_inbound_number_for_service,
):
service_one['permissions'] = ['inbound_sms']
@@ -229,7 +229,7 @@ def test_empty_inbox(
mock_get_detailed_service,
mock_get_template_statistics,
mock_get_usage,
mock_get_inbound_sms_with_no_messages,
mock_get_most_recent_inbound_sms_with_no_messages,
mock_get_inbound_number_for_service,
):
@@ -267,7 +267,7 @@ def test_anyone_can_see_inbox(
api_user_active,
service_one,
mocker,
mock_get_inbound_sms_with_no_messages,
mock_get_most_recent_inbound_sms_with_no_messages,
mock_get_inbound_number_for_service,
):
@@ -289,7 +289,7 @@ def test_view_inbox_updates(
logged_in_client,
service_one,
mocker,
mock_get_inbound_sms_with_no_messages,
mock_get_most_recent_inbound_sms_with_no_messages,
):
mock_get_partials = mocker.patch(