mirror of
https://github.com/pyecharts/pyecharts.git
synced 2026-01-25 17:06:27 +00:00
18 lines
456 B
Python
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))
|