|
14 | 14 | from folium.features import Circle, CircleMarker, Polygon, Rectangle
|
15 | 15 | from folium.utilities import get_bounds
|
16 | 16 |
|
| 17 | + |
17 | 18 | def test_circle():
|
18 | 19 | m = Map()
|
19 | 20 | radius = 10000
|
@@ -71,14 +72,14 @@ def test_circle():
|
71 | 72 | }}
|
72 | 73 | )
|
73 | 74 | .addTo({map});
|
74 |
| - """.format(name=circle.get_name(), location=location, radius=radius, map=m.get_name()) |
| 75 | + """.format(name=circle.get_name(), location=location, radius=radius, map=m.get_name()) # noqa |
75 | 76 |
|
76 | 77 | rendered = circle._template.module.script(circle)
|
77 | 78 | assert rendered.strip().split() == expected_rendered.strip().split()
|
78 | 79 | assert circle.get_bounds() == [location, location]
|
79 | 80 | assert json.dumps(circle.to_dict()) == circle.to_json()
|
80 | 81 | assert circle.location == [-27.551667, -48.478889]
|
81 |
| - assert circle.options == json.dumps(expected_options, sort_keys=True, indent=2) |
| 82 | + assert circle.options == json.dumps(expected_options, sort_keys=True, indent=2) # noqa |
82 | 83 |
|
83 | 84 |
|
84 | 85 | def test_circle_marker():
|
@@ -139,14 +140,14 @@ def test_circle_marker():
|
139 | 140 | }}
|
140 | 141 | )
|
141 | 142 | .addTo({map});
|
142 |
| - """.format(name=circle_marker.get_name(), location=location, radius=radius, map=m.get_name()) |
| 143 | + """.format(name=circle_marker.get_name(), location=location, radius=radius, map=m.get_name()) # noqa |
143 | 144 |
|
144 | 145 | rendered = circle_marker._template.module.script(circle_marker)
|
145 | 146 | assert rendered.strip().split() == expected_rendered.strip().split()
|
146 | 147 | assert circle_marker.get_bounds() == expected_bounds
|
147 | 148 | assert json.dumps(circle_marker.to_dict()) == circle_marker.to_json()
|
148 | 149 | assert circle_marker.location == location
|
149 |
| - assert circle_marker.options == json.dumps(options, sort_keys=True, indent=2) |
| 150 | + assert circle_marker.options == json.dumps(options, sort_keys=True, indent=2) # noqa |
150 | 151 |
|
151 | 152 |
|
152 | 153 | def test_rectangle():
|
@@ -207,7 +208,7 @@ def test_rectangle():
|
207 | 208 | assert rendered.strip().split() == expected_rendered.strip().split()
|
208 | 209 | assert rectangle.get_bounds() == location
|
209 | 210 | assert json.dumps(rectangle.to_dict()) == rectangle.to_json()
|
210 |
| - assert rectangle.options == json.dumps(expected_options, sort_keys=True, indent=2) |
| 211 | + assert rectangle.options == json.dumps(expected_options, sort_keys=True, indent=2) # noqa |
211 | 212 |
|
212 | 213 |
|
213 | 214 | def test_polygon_marker():
|
@@ -266,4 +267,4 @@ def test_polygon_marker():
|
266 | 267 | assert rendered.strip().split() == expected_rendered.strip().split()
|
267 | 268 | assert polygon.get_bounds() == get_bounds(locations)
|
268 | 269 | assert json.dumps(polygon.to_dict()) == polygon.to_json()
|
269 |
| - assert polygon.options == json.dumps(expected_options, sort_keys=True, indent=2) |
| 270 | + assert polygon.options == json.dumps(expected_options, sort_keys=True, indent=2) # noqa |
0 commit comments