From 6375a1ac5e4725f0e556fc1a1d54f5534f988835 Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Tue, 14 Aug 2018 15:59:02 +0100 Subject: [PATCH] Make testing for 'text' value more specific Just duplicting the 'name' field could produce a false-positive. --- tests/app/main/views/test_email_branding.py | 2 +- tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/main/views/test_email_branding.py b/tests/app/main/views/test_email_branding.py index 39236afc0..b084164b8 100644 --- a/tests/app/main/views/test_email_branding.py +++ b/tests/app/main/views/test_email_branding.py @@ -45,7 +45,7 @@ def test_edit_email_branding_shows_the_correct_branding_info( assert page.select_one('#logo-img > img')['src'].endswith('/example.png') assert page.select_one('#name').attrs.get('value') == 'Organisation name' - assert page.select_one('#text').attrs.get('value') == 'Organisation name' + assert page.select_one('#text').attrs.get('value') == 'Organisation text' assert page.select_one('#colour').attrs.get('value') == '#f00' diff --git a/tests/conftest.py b/tests/conftest.py index d5a6ebbae..712b5dda4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2474,7 +2474,7 @@ def mock_get_email_branding(mocker, fake_uuid): 'email_branding': { 'logo': 'example.png', 'name': 'Organisation name', - 'text': 'Organisation name', + 'text': 'Organisation text', 'id': fake_uuid, 'colour': '#f00' }