Skip to content

Commit 23ae17d

Browse files
committed
Fix tests
1 parent bc219ff commit 23ae17d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tests/plugins/test_marker_cluster.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def test_marker_cluster():
3535
3636
{% for marker in this._children.values() %}
3737
var {{marker.get_name()}} = L.marker(
38-
{{ marker.location|tojson }},
39-
{"draggable": null,"autoPan": null,}
38+
{{ marker.location|tojson }}, {}
4039
).addTo({{this.get_name()}});
4140
{% endfor %}
4241

tests/test_map.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_popup_show():
134134
rendered = popup._template.render(this=popup, kwargs={})
135135
expected = """
136136
var {popup_name} = L.popup({{
137-
"maxWidth": "100%","autoClose": false,"closeOnClick": null,
137+
"maxWidth": "100%","autoClose": false,
138138
}});
139139
var {html_name} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">Some text.</div>`)[0];
140140
{popup_name}.setContent({html_name});
@@ -155,8 +155,6 @@ def test_popup_backticks():
155155
expected = """
156156
var {popup_name} = L.popup({{
157157
"maxWidth": "100%",
158-
"autoClose": null,
159-
"closeOnClick": null,
160158
}});
161159
var {html_name} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">back\\`tick\\`tick</div>`)[0];
162160
{popup_name}.setContent({html_name});
@@ -176,8 +174,6 @@ def test_popup_backticks_already_escaped():
176174
expected = """
177175
var {popup_name} = L.popup({{
178176
"maxWidth": "100%",
179-
"autoClose": null,
180-
"closeOnClick": null,
181177
}});
182178
var {html_name} = $(`<div id="{html_name}" style="width: 100.0%; height: 100.0%;">back\\`tick</div>`)[0];
183179
{popup_name}.setContent({html_name});

0 commit comments

Comments
 (0)