(tmpl)
| 58 | |
| 59 | |
| 60 | def test_figure_html(tmpl): |
| 61 | f = folium.Figure() |
| 62 | out = f.render() |
| 63 | out = os.linesep.join([s.strip() for s in out.splitlines() if s.strip()]) |
| 64 | tmpl = os.linesep.join([s.strip() for s in tmpl.splitlines() if s.strip()]) |
| 65 | assert out == tmpl, "\n" + out + "\n" + "-" * 80 + "\n" + tmpl |
| 66 | |
| 67 | bounds = f.get_bounds() |
| 68 | assert bounds == [[None, None], [None, None]], bounds |
| 69 | |
| 70 | |
| 71 | def test_figure_double_rendering(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…