Skip to content

Commit

Permalink
Set title (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog authored Jun 11, 2024
2 parents 2ee7045 + dbf20bf commit 7c0e64a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tad/site/templates/default_layout.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ page_title }}</title>
<title>{% block title %}Transparency of Algorithmic Decision making (TAD){% endblock %}</title>
<!-- TODO: decide if all files should be local, and if so, how to do versions management -->
<script type="text/javascript" src="/static/vendor/sortable/js/sortable.js"></script>
<script type="text/javascript" src="/static/vendor/htmx/js/hyperscript.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion tests/api/routes/test_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_get_root(client: TestClient) -> None:
# todo (robbert) this is a quick test to see if we (most likely) get the expected page
assert response.status_code == 200
assert response.headers["content-type"] == "text/html; charset=utf-8"
assert b"<title>This is the page title</title>" in response.content
assert b"<title>Transparency of Algorithmic Decision making (TAD)</title>" in response.content


def test_get_favicon(client: TestClient) -> None:
Expand Down

0 comments on commit 7c0e64a

Please sign in to comment.