Skip to content

Commit

Permalink
Lint and test
Browse files Browse the repository at this point in the history
  • Loading branch information
providenz committed Oct 14, 2024
1 parent 649a091 commit c23859d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/templates/website/accessibility.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends "website/base_website.html" %}
{% load static hosts %}
{% block title
%}
Accessibilité - Trackdéchets
{% endblock %}
{% block title %}Accessibilité - Trackdéchets{% endblock %}
{% block main %}
<div class="fr-container fr-mt-10v fr-mb-10v">
<h1 class="td-text-blue">Déclaration d’accessibilité</h1>
Expand Down
12 changes: 12 additions & 0 deletions src/website/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ def test_cgu(anon_client):
res = anon_client.get(url)
assert res.status_code == 200
assert "Conditions Générales d’Utilisation" in res.content.decode()


def test_accessibility(anon_client):
url = reverse("accessibility")
res = anon_client.get(url)
assert res.status_code == 200
assert "Déclaration d’accessibilité" in res.content.decode()


def test_resources(anon_client):
res = anon_client.get("/resources")
assert res.status_code == 301

0 comments on commit c23859d

Please sign in to comment.