Revert "Merge pull request #1333 from alphagov/fix-empty-table-message"

This reverts commit 114bac7b80, reversing
changes made to 69445380d9.
This commit is contained in:
Chris Hill-Scott
2017-06-23 15:55:54 +01:00
parent c52bfc5b81
commit 5c0f6796e4
3 changed files with 3 additions and 23 deletions

View File

@@ -9,7 +9,6 @@ from bs4 import BeautifulSoup
from app.main.views.jobs import get_time_left, get_status_filters
from tests import notification_json
from tests.conftest import SERVICE_ONE_ID
from tests.app.test_utils import normalize_spaces
from freezegun import freeze_time
@@ -136,23 +135,6 @@ def test_can_show_notifications(
assert json_content.keys() == {'counts', 'notifications'}
def test_shows_message_when_no_notifications(
client_request,
mock_get_detailed_service,
mock_get_notifications_with_no_notifications,
):
page = client_request.get(
'main.view_notifications',
service_id=SERVICE_ONE_ID,
message_type='sms',
)
assert normalize_spaces(page.select('tbody tr')[0].text) == (
'No messages found'
)
@pytest.mark.parametrize((
'initial_query_arguments,'
'form_post_data,'