Use service_has_permission decorator on inbox

This proves that the decorator works, because the inbox code is already
tested:
bad1e69cc3/tests/app/main/views/test_dashboard.py (L353-L367)
This commit is contained in:
Chris Hill-Scott
2020-07-03 10:00:55 +01:00
parent d4627a2f3a
commit dd2b737d24
3 changed files with 6 additions and 3 deletions

View File

@@ -396,6 +396,7 @@ def test_view_inbox_updates(
mocker,
mock_get_most_recent_inbound_sms_with_no_messages,
):
service_one['permissions'] += ['inbound_sms']
mock_get_partials = mocker.patch(
'app.main.views.dashboard.get_inbox_partials',