Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hansthen committed Dec 12, 2024
1 parent bc219ff commit 23ae17d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions tests/plugins/test_marker_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
6 changes: 1 addition & 5 deletions tests/test_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">Some text.</div>`)[0];
{popup_name}.setContent({html_name});
Expand All @@ -155,8 +155,6 @@ def test_popup_backticks():
expected = """
var {popup_name} = L.popup({{
"maxWidth": "100%",
"autoClose": null,
"closeOnClick": null,
}});
var {html_name} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">back\\`tick\\`tick</div>`)[0];
{popup_name}.setContent({html_name});
Expand All @@ -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} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">back\\`tick</div>`)[0];
{popup_name}.setContent({html_name});
Expand Down

0 comments on commit 23ae17d

Please sign in to comment.