mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 03:39:29 -04:00
Host image used in email template in app
Right now the crown logo in email templates is hosted on Github. Github is not a CDN. For now, hosting it in the app is a better solution. At some point we should have a CDN for all assets on the app, which would be even better. https://www.pivotaltracker.com/story/show/116952911
This commit is contained in:
BIN
app/assets/images/email-template/crown-32px.gif
Normal file
BIN
app/assets/images/email-template/crown-32px.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
9
tests/app/test_assets.py
Normal file
9
tests/app/test_assets.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import app
|
||||
|
||||
|
||||
def test_crown_logo(app_):
|
||||
with app_.test_request_context():
|
||||
# This image is used by the email templates, so we should be really careful to make
|
||||
# sure that its always there.
|
||||
response = app_.test_client().get('/static/images/email-template/crown-32px.gif')
|
||||
assert response.status_code == 200
|
||||
Reference in New Issue
Block a user