From 23ae17d62edacc350ce81d2b86998554af403ba2 Mon Sep 17 00:00:00 2001 From: Hans Then Date: Thu, 12 Dec 2024 21:32:25 +0100 Subject: [PATCH] Fix tests --- tests/plugins/test_marker_cluster.py | 3 +-- tests/test_map.py | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/plugins/test_marker_cluster.py b/tests/plugins/test_marker_cluster.py index 0b01db746..43dccbcaa 100644 --- a/tests/plugins/test_marker_cluster.py +++ b/tests/plugins/test_marker_cluster.py @@ -35,8 +35,7 @@ def test_marker_cluster(): {% for marker in this._children.values() %} var {{marker.get_name()}} = L.marker( - {{ marker.location|tojson }}, - {"draggable": null,"autoPan": null,} + {{ marker.location|tojson }}, {} ).addTo({{this.get_name()}}); {% endfor %} diff --git a/tests/test_map.py b/tests/test_map.py index 7104971a6..cc3728586 100644 --- a/tests/test_map.py +++ b/tests/test_map.py @@ -134,7 +134,7 @@ def test_popup_show(): rendered = popup._template.render(this=popup, kwargs={}) expected = """ var {popup_name} = L.popup({{ - "maxWidth": "100%","autoClose": false,"closeOnClick": null, + "maxWidth": "100%","autoClose": false, }}); var {html_name} = $(`
Some text.
`)[0]; {popup_name}.setContent({html_name}); @@ -155,8 +155,6 @@ def test_popup_backticks(): expected = """ var {popup_name} = L.popup({{ "maxWidth": "100%", - "autoClose": null, - "closeOnClick": null, }}); var {html_name} = $(`
back\\`tick\\`tick
`)[0]; {popup_name}.setContent({html_name}); @@ -176,8 +174,6 @@ def test_popup_backticks_already_escaped(): expected = """ var {popup_name} = L.popup({{ "maxWidth": "100%", - "autoClose": null, - "closeOnClick": null, }}); var {html_name} = $(`
back\\`tick
`)[0]; {popup_name}.setContent({html_name});