microscope: improve test coverage
@@ -7,8 +7,8 @@ import codecs
from pyecharts import (
Bar, Scatter3D, Line, Pie, Map,
Kline, Radar, WordCloud, Liquid)
-from pyecharts import Page, online
-import pyecharts.constants as constants
+from pyecharts import Page
+from nose.tools import eq_
def create_three():
@@ -58,6 +58,13 @@ def test_two_bars():
assert echarts_position < guangdong_position
+def test_page_get_js_dependencies():
+ page = create_three()
+ dependencies = page.get_js_dependencies()
+ expected = ['echarts.min', 'guangdong', 'echarts-gl.min']
+ eq_(dependencies, expected)
+
+
def test_page_embed():
page = create_three()
html = page.render_embed()
