pyecharts/test/test_global_options.py
陈键冬 2b94085994
Add: tests (#1061)
* Add: tests

* Format: code

* Update: BasicOpts pass
2019-05-05 20:35:02 +08:00

18 lines
456 B
Python

from nose.tools import eq_
from pyecharts.commons.utils import remove_key_with_none_value
from pyecharts.options.global_options import ToolboxOpts
def test_toolbox_options_remove_none():
option = ToolboxOpts(feature={})
expected = {
"show": True,
"orient": "horizontal",
"itemSize": 15,
"itemGap": 10,
"left": "80%",
"feature": {},
}
eq_(expected, remove_key_with_none_value(option.opts))