From 7aa445f01b3b48f254d95f3002b162caaf24cc20 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 10 Oct 2024 10:43:54 +0200 Subject: [PATCH] Update umap/templates/umap/map_detail.html Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com> --- umap/templates/umap/map_detail.html | 2 +- umap/tests/test_map_views.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/umap/templates/umap/map_detail.html b/umap/templates/umap/map_detail.html index 3fde7391..ddf68523 100644 --- a/umap/templates/umap/map_detail.html +++ b/umap/templates/umap/map_detail.html @@ -18,7 +18,7 @@ {{ block.super }} {% umap_js locale=locale %} {% if UMAP_DEMO_SITE or object.share_status != object.PUBLIC %} - + {% endif %} ' in response.content.decode() + assert ( + '' in response.content.decode() + ) def test_demo_instance_should_have_noindex(client, map, datalayer, settings): settings.UMAP_DEMO_SITE = True response = client.get(map.get_absolute_url()) assert response.status_code == 200 - assert '' in response.content.decode() + assert ( + '' in response.content.decode() + )