From 68129bc9f4b8e0cdac50d06a1909b954e113345e Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Tue, 9 Aug 2022 14:14:49 +0000 Subject: [PATCH] Address flake8 issues --- tests/app/main/views/test_templates.py | 15 ++++++++++----- tests/app/test_config.py | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/app/main/views/test_templates.py b/tests/app/main/views/test_templates.py index 4e79a700b..a6fdfe9c8 100644 --- a/tests/app/main/views/test_templates.py +++ b/tests/app/main/views/test_templates.py @@ -31,16 +31,20 @@ from tests.conftest import ( @pytest.mark.parametrize('permissions, expected_message', ( (['email'], ( - 'Every message starts with a template. You can change it later. You need a template before you can send emails, text messages or letters.' + 'Every message starts with a template. You can change it later. ' + 'You need a template before you can send emails, text messages or letters.' )), (['sms'], ( - 'Every message starts with a template. You can change it later. You need a template before you can send emails, text messages or letters.' + 'Every message starts with a template. You can change it later. ' + 'You need a template before you can send emails, text messages or letters.' )), (['letter'], ( - 'Every message starts with a template. You can change it later. You need a template before you can send emails, text messages or letters.' + 'Every message starts with a template. You can change it later. ' + 'You need a template before you can send emails, text messages or letters.' )), (['email', 'sms', 'letter'], ( - 'Every message starts with a template. You can change it later. You need a template before you can send emails, text messages or letters.' + 'Every message starts with a template. You can change it later. ' + 'You need a template before you can send emails, text messages or letters.' )), (['broadcast'], ( 'Every message starts with a template. You can change it later. You haven’t added any templates yet.' @@ -89,7 +93,8 @@ def test_should_show_add_template_form_if_service_has_folder_permission( 'Templates' ) assert normalize_spaces(page.select_one('main p').text) == ( - 'Every message starts with a template. You can change it later. You need a template before you can send emails, text messages or letters.' + 'Every message starts with a template. You can change it later. ' + 'You need a template before you can send emails, text messages or letters.' ) assert [ (item['name'], item['value']) for item in page.select('[type=radio]') diff --git a/tests/app/test_config.py b/tests/app/test_config.py index 27547f20a..7827aebae 100644 --- a/tests/app/test_config.py +++ b/tests/app/test_config.py @@ -40,7 +40,7 @@ def test_load_cloudfoundry_config_if_available(reload_config): }], }) - with mock.patch('app.cloudfoundry_config.extract_cloudfoundry_config', side_effect=cf_conf) as cf_config: + with mock.patch('app.cloudfoundry_config.extract_cloudfoundry_config', side_effect=cf_conf): # reload config so that its module level code (ie: all of it) is re-instantiated importlib.reload(config)