Skip to content

Commit b93d4d5

Browse files
committed
fix lints
1 parent b4f28b7 commit b93d4d5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

tests/test_folium.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import branca.element
1515

1616
import folium
17-
from folium.features import Polygon, Rectangle, TopoJson
17+
from folium.features import TopoJson
1818

1919
import jinja2
2020
from jinja2 import Environment, PackageLoader
@@ -207,7 +207,9 @@ def test_topo_json_smooth_factor(self):
207207

208208
# Adding TopoJSON as additional layer.
209209
with open(os.path.join(rootpath, 'or_counties_topo.json')) as f:
210-
self.m.choropleth(f, topojson='objects.or_counties_geo', smooth_factor=0.5)
210+
self.m.choropleth(f,
211+
topojson='objects.or_counties_geo',
212+
smooth_factor=0.5)
211213

212214
out = self.m._parent.render()
213215

tests/test_vector_layers.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from folium.features import Circle, CircleMarker, Polygon, Rectangle
1515
from folium.utilities import get_bounds
1616

17+
1718
def test_circle():
1819
m = Map()
1920
radius = 10000
@@ -71,14 +72,14 @@ def test_circle():
7172
}}
7273
)
7374
.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
7576

7677
rendered = circle._template.module.script(circle)
7778
assert rendered.strip().split() == expected_rendered.strip().split()
7879
assert circle.get_bounds() == [location, location]
7980
assert json.dumps(circle.to_dict()) == circle.to_json()
8081
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
8283

8384

8485
def test_circle_marker():
@@ -139,14 +140,14 @@ def test_circle_marker():
139140
}}
140141
)
141142
.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
143144

144145
rendered = circle_marker._template.module.script(circle_marker)
145146
assert rendered.strip().split() == expected_rendered.strip().split()
146147
assert circle_marker.get_bounds() == expected_bounds
147148
assert json.dumps(circle_marker.to_dict()) == circle_marker.to_json()
148149
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
150151

151152

152153
def test_rectangle():
@@ -207,7 +208,7 @@ def test_rectangle():
207208
assert rendered.strip().split() == expected_rendered.strip().split()
208209
assert rectangle.get_bounds() == location
209210
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
211212

212213

213214
def test_polygon_marker():
@@ -266,4 +267,4 @@ def test_polygon_marker():
266267
assert rendered.strip().split() == expected_rendered.strip().split()
267268
assert polygon.get_bounds() == get_bounds(locations)
268269
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

Comments
 (0)