mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 15:08:25 -04:00
Refactor code
This commit is contained in:
@@ -49,8 +49,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('main.platform_admin') }}">Platform admin</a>
|
<a href="{{ url_for('main.platform_admin') }}">Platform admin</a>
|
||||||
</li>
|
</li>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('main.view_providers') }}">Providers</a>
|
<a href="{{ url_for('main.view_providers') }}">Providers</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -60,7 +58,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('main.letter_jobs') }}">Letter jobs</a>
|
<a href="{{ url_for('main.letter_jobs') }}">Letter jobs</a>
|
||||||
</li>
|
</li>
|
||||||
>>>>>>> Add org select and manage pages
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('main.sign_out')}}">Sign out</a>
|
<a href="{{ url_for('main.sign_out')}}">Sign out</a>
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ from app.utils import (
|
|||||||
generate_previous_dict,
|
generate_previous_dict,
|
||||||
generate_next_dict,
|
generate_next_dict,
|
||||||
Spreadsheet,
|
Spreadsheet,
|
||||||
<<<<<<< HEAD
|
|
||||||
get_letter_timings,
|
get_letter_timings,
|
||||||
=======
|
|
||||||
>>>>>>> Update emails to use logos cdn
|
|
||||||
get_cdn_domain
|
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
|
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):
|
def test_get_cdn_domain_on_localhost(client, mocker):
|
||||||
mocker.patch.dict('app.current_app.config', values={'ADMIN_BASE_URL': 'http://localhost:6012'})
|
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()
|
domain = get_cdn_domain()
|
||||||
assert domain == 'static-logos.notify.tools'
|
assert domain == 'static-logos.notify.tools'
|
||||||
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
def test_get_cdn_domain_on_non_localhost(client, mocker):
|
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'})
|
mocker.patch.dict('app.current_app.config', values={'ADMIN_BASE_URL': 'https://some.admintest.com'})
|
||||||
domain = get_cdn_domain()
|
domain = get_cdn_domain()
|
||||||
assert domain == 'static-logos.admintest.com'
|
assert domain == 'static-logos.admintest.com'
|
||||||
|
|||||||
Reference in New Issue
Block a user