From 66506d18bb3185839933175bd2d06b97b2430230 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 7 Apr 2016 09:15:18 +0100 Subject: [PATCH] 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 --- app/assets/images/email-template/crown-32px.gif | Bin 0 -> 1383 bytes tests/app/test_assets.py | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 app/assets/images/email-template/crown-32px.gif create mode 100644 tests/app/test_assets.py diff --git a/app/assets/images/email-template/crown-32px.gif b/app/assets/images/email-template/crown-32px.gif new file mode 100644 index 0000000000000000000000000000000000000000..2e0ee1bac3e9d782971def48fea97247c156a733 GIT binary patch literal 1383 zcmZ?wbhEHb)MHR!_|5FL?o**Q5mxw*M{ zd3pKy`2__9g@uJhMMWhgC8edMWo2dM<>ggXRn^tiwY9Z%b#?Xi^-WDpEiEmbot<4> zUEST?Jv}|Wy}eVWOqn`$>a=Oorca+fW5$e`GiT14HEZtNx%1}DTeN7=k|j%)E?v5O z`SKMjR;*mPa@DF;t5>gHyLRomb?erzU%zqV#!Z_xZQi_j`}XZSckbM^YuDbrd-v_z zw}1cs0|yQqK79Ddkt4^B9XomQ-O#2ckbM|ckkZ)`}ZF`di4DH^A|5(ynOlc-Me=mK79E2@#CjY zpT2zg^7ZT2Z{NOs|Ni~YpFjWp{rms_KREJ7I-&TJ1snv5|G7PL6Vp?D6Vo%3v-#2! zb8{1I4fIS*L6AWQqz05@7&!hhFmlLvY*=uxnL}7B=ER1DhnqPnE*$u{;n5+k6-H5a zItm1}jAWdd1U9fWi-j1)bO`P=TCH081z`-j$OQq^gbu3F@Hcu4V zy@a`eL3#nJZ0euK6V6O)t&NEa^f=%%t&OdUCqY6%KgG8XYU zsz_>U_B<3ib3lECnC+Q}qy^`Cc!d5572HfznBODJrf0$O@`CCm=E{^MMg<;j-bZp{ z6fD#pvo!_nxN^n8GsWbNgTk2$0m3U>9v*NoU<^3I$*`yKln{eNW0QmQf~HOfb^!x+ z4Fi)9HZ3oKBt{0MABA1&%NQQ8XtfG7osylt;8G*&ij<~Pk|GQaEK=DEgj$>zr)**2 z)?b*!GX5QqQz*pAw6=kRL4vb|GmIgk@swcoln?D$ zq9H9_K?3Un0>X_%z8qCy;r!I$s=kfkp@t;S7bmwxYcwt_n#mc$s%06W;^>y=aA+_Wo&#a++kP@9PLi~>g{Zrufr XTuv#9$CY!AE_t)*jM?cR2L@{Z-Rs7Q literal 0 HcmV?d00001 diff --git a/tests/app/test_assets.py b/tests/app/test_assets.py new file mode 100644 index 000000000..54e0301fc --- /dev/null +++ b/tests/app/test_assets.py @@ -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