From b1d1c6881ff48318a70e7b74647efdafafa884ae Mon Sep 17 00:00:00 2001 From: Ken Tsang Date: Wed, 2 Aug 2017 11:07:27 +0100 Subject: [PATCH] Refactor code --- app/templates/admin_template.html | 3 --- tests/app/test_utils.py | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index 5be2db3b7..189f94f72 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -49,8 +49,6 @@
  • Platform admin
  • -<<<<<<< HEAD -=======
  • Providers
  • @@ -60,7 +58,6 @@
  • Letter jobs
  • ->>>>>>> Add org select and manage pages {% endif %}
  • Sign out diff --git a/tests/app/test_utils.py b/tests/app/test_utils.py index 14805cf96..d589de458 100644 --- a/tests/app/test_utils.py +++ b/tests/app/test_utils.py @@ -12,10 +12,7 @@ from app.utils import ( generate_previous_dict, generate_next_dict, Spreadsheet, -<<<<<<< HEAD get_letter_timings, -======= ->>>>>>> Update emails to use logos cdn get_cdn_domain ) @@ -295,22 +292,13 @@ def test_get_estimated_delivery_date_for_letter( assert timings.latest_delivery.strftime('%A %Y-%m-%d') == expected_latest -======= ->>>>>>> Update emails to use logos cdn def test_get_cdn_domain_on_localhost(client, mocker): mocker.patch.dict('app.current_app.config', values={'ADMIN_BASE_URL': 'http://localhost:6012'}) -======= -def test_get_cdn_domain_on_localhost(client): ->>>>>>> Update config to new s3 bucket names domain = get_cdn_domain() assert domain == 'static-logos.notify.tools' -<<<<<<< HEAD def test_get_cdn_domain_on_non_localhost(client, mocker): -======= -def test_get_cdn_domain_without_logo_base_domain_env_returns_admin_base_domain(client, mocker): ->>>>>>> Update emails to use logos cdn mocker.patch.dict('app.current_app.config', values={'ADMIN_BASE_URL': 'https://some.admintest.com'}) domain = get_cdn_domain() assert domain == 'static-logos.admintest.com'