Skip to content

Commit e233d48

Browse files
committed
tests/style: simply logic assertions
1 parent a3ef7c8 commit e233d48

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/test_folium.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -311,24 +311,24 @@ def test_custom_icon(self):
311311

312312
def test_global_switches(self):
313313
m = folium.Map(prefer_canvas=True)
314-
assert (m.global_switches.prefer_canvas is True and
315-
m.global_switches.no_touch is False and
316-
m.global_switches.disable_3d is False)
314+
assert m.global_switches.prefer_canvas
315+
assert not m.global_switches.no_touch
316+
assert not m.global_switches.disable_3d
317317

318318
m = folium.Map(no_touch=True)
319-
assert (m.global_switches.prefer_canvas is False and
320-
m.global_switches.no_touch is True and
321-
m.global_switches.disable_3d is False)
319+
assert not m.global_switches.prefer_canvas
320+
assert m.global_switches.no_touch
321+
assert not m.global_switches.disable_3d
322322

323323
m = folium.Map(disable_3d=True)
324-
assert (m.global_switches.prefer_canvas is False and
325-
m.global_switches.no_touch is False and
326-
m.global_switches.disable_3d is True)
324+
assert not m.global_switches.prefer_canvas
325+
assert not m.global_switches.no_touch
326+
assert m.global_switches.disable_3d
327327

328328
m = folium.Map(prefer_canvas=True, no_touch=True, disable_3d=True)
329-
assert (m.global_switches.prefer_canvas is True and
330-
m.global_switches.no_touch is True and
331-
m.global_switches.disable_3d is True)
329+
assert m.global_switches.prefer_canvas
330+
assert m.global_switches.no_touch
331+
assert m.global_switches.disable_3d
332332

333333
@pytest.mark.web
334334
def test_json_request(self):

0 commit comments

Comments
 (0)