Fix unit tests

This commit is contained in:
Aarni Halinen
2022-08-01 22:29:06 +03:00
parent 2628d753f5
commit 321d45b628
31 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -40,5 +40,5 @@
</div>
</div>
{% include "webapp:footer.html" %}
{% include "footer.html" %}
{% endblock body %}
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
+1 -1
View File
@@ -35,6 +35,6 @@
<body>
{% block content %}
{% endblock content %}
{% include "webapp:footer.html" %}
{% include "footer.html" %}
</body>
</html>
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
+1 -1
View File
@@ -91,6 +91,6 @@
</div>
</div>
{% include "webapp:footer.html" %}
{% include "footer.html" %}
</body>
</html>
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load bootstrap3 %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load static %}
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load static %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load bootstrap3 %}
{% load i18n %}
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load static %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load static %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% block content %}
<h1>{{ title }}</h1>
+2 -2
View File
@@ -101,7 +101,7 @@ def application_accept(request, *args, **kwargs):
subject = _("Jäsenhakemuksesi Sähköinsinöörikiltaan on hyväksytty!")
message = render_to_string(
"members:email_application_accept.html",
"email_application_accept.html",
{"first_name": application.first_name},
)
send_email(member.email, subject, message, True)
@@ -186,7 +186,7 @@ def application_submit(request, *args, **kwargs):
)
message = render_to_string(
"members:email_application_submit.html",
"email_application_submit.html",
{
"application": application,
"ayy": _("Kyllä") if application.AYY else _("Ei"),
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "members:base.html" %}
{% extends "base.html" %}
{% load static %}
{% load i18n %}
+1 -1
View File
@@ -279,7 +279,7 @@ class JobAd(models.Model):
def generateMessage(heading: str, title: str, description: str, url: str):
return render_to_string(
"webapp:tg_message.tpl",
"tg_message.tpl",
{"heading": heading, "title": title, "description": description, "url": url},
)
+3 -3
View File
@@ -14,14 +14,14 @@
<div class="row">
<div class="col">
{% block header %}
{% include "webapp:header.html" %}
{% include "header.html" %}
{% endblock %}
</div>
</div>
<div class="row">
<div class="col">
{% block navigation %}
{% include "webapp:navigation.html" %}
{% include "navigation.html" %}
{% endblock %}
</div>
</div>
@@ -33,6 +33,6 @@
</div>
</div>
{% block footer %}
{% include "webapp:footer.html" %}
{% include "footer.html" %}
{% endblock footer %}
{% endblock %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% block content %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% block content %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% block content %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% block content %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% block content %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% block content %}
{% load i18n %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "webapp:base.html" %}
{% extends "base.html" %}
{% block content %}
{% load i18n %}
+1 -1
View File
@@ -106,7 +106,7 @@ def send_email(to: str, subject: str, body: str, html: bool = False):
def send_signup_email(to, subject, id, uuid, content):
message = render_to_string(
"webapp:signup_email.html",
"signup_email.html",
{
"url": f"https://{FRONTEND_URL}/signup/edit/{id}/{uuid}",
"content": markdown.markdown(content),