mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-24 12:58:05 +00:00
fixing some failing tests in the email logic, due to changes in the static asset paths.
This commit is contained in:
parent
90501bfecc
commit
153d9a78be
@ -81,13 +81,13 @@ class NotificationService(object):
|
|||||||
link = self.get_link(sample)
|
link = self.get_link(sample)
|
||||||
subject = "UVA: BE SAFE Notification"
|
subject = "UVA: BE SAFE Notification"
|
||||||
tracking_code = self._tracking_code()
|
tracking_code = self._tracking_code()
|
||||||
text_body = render_template("result_email.txt",
|
text_body = render_template("pages/result_email.txt",
|
||||||
link=link,
|
link=link,
|
||||||
base_url=self.URL_ROOT,
|
base_url=self.URL_ROOT,
|
||||||
sample=sample,
|
sample=sample,
|
||||||
tracking_code=tracking_code)
|
tracking_code=tracking_code)
|
||||||
|
|
||||||
html_body = render_template("result_email.html",
|
html_body = render_template("pages/result_email.html",
|
||||||
link=link,
|
link=link,
|
||||||
base_url=self.URL_ROOT,
|
base_url=self.URL_ROOT,
|
||||||
sample=sample,
|
sample=sample,
|
||||||
@ -162,7 +162,7 @@ class NotificationService(object):
|
|||||||
|
|
||||||
# Embed the logo image
|
# Embed the logo image
|
||||||
# This example assumes the image is in the current directory
|
# This example assumes the image is in the current directory
|
||||||
fp = open(join(app.root_path, 'static', 'uva_logo.png'), 'rb')
|
fp = open(join(app.root_path, 'static', 'assets', 'img', 'brand', 'uva_logo.png'), 'rb')
|
||||||
msgImage = MIMEImage(fp.read())
|
msgImage = MIMEImage(fp.read())
|
||||||
fp.close()
|
fp.close()
|
||||||
# Define the image's ID as referenced above
|
# Define the image's ID as referenced above
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends "base_email.html" %}
|
{% extends "pages/base_email.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px; Margin-top: 20px;">
|
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px; Margin-top: 20px;">
|
||||||
Dear Student,
|
Dear Student,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends "base_email.html" %}
|
{% extends "pages/base_email.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<p style="font-family: sans-serif; font-size: 24px; font-weight: bold; margin: 0; Margin-bottom: 15px;">
|
<p style="font-family: sans-serif; font-size: 24px; font-weight: bold; margin: 0; Margin-bottom: 15px;">
|
||||||
You have a new notification from the University of Virginia saliva screening system.
|
You have a new notification from the University of Virginia saliva screening system.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user