From 2bd711e30cbe96714c61f23cc0a82f1adfae2fb7 Mon Sep 17 00:00:00 2001 From: kyokukou Date: Mon, 23 Sep 2024 08:21:56 -0700 Subject: [PATCH] make sure date is present in new list --- browse/templates/list/new.html | 1 + tests/listings/db/test_db_listing_new.py | 1 + 2 files changed, 2 insertions(+) diff --git a/browse/templates/list/new.html b/browse/templates/list/new.html index 19151456..eed58099 100644 --- a/browse/templates/list/new.html +++ b/browse/templates/list/new.html @@ -15,6 +15,7 @@

See recent articles

+

Showing new listings for {{announced.strftime('%A, %-d %B %Y')}}

{% endblock %} {% block items %} diff --git a/tests/listings/db/test_db_listing_new.py b/tests/listings/db/test_db_listing_new.py index 9642bbff..cfa5d53a 100644 --- a/tests/listings/db/test_db_listing_new.py +++ b/tests/listings/db/test_db_listing_new.py @@ -167,6 +167,7 @@ def test_new_listing_page( client_with_db_listings): assert rv.status_code == 200 text = rv.text assert "Replacement submissions" in text + assert "Showing new listings for Thursday, 3 February 2011" in text assert "arXiv:math/0510544" in text assert "Leibniz superalgebras graded by finite root systems" in text assert "showing 1 of 1 entries" in text