pyecharts/test/test_style.py
陈键冬 8f16369400 Charts docs update and pink everything (#536)
* Update: docs update

* Update: 统一注释文档风格

* Update: pink echarts folder

* Update: pink charts folder

* Update: pink custom folder

* Update: pink pyecharts and dataset folder

* Update: pink test folder

* Update: pink utils folder

* Update: micro docs update for theme

* Fix: fixed broken test
2018-05-04 22:37:27 +08:00

15 lines
395 B
Python

#!/usr/bin/env python
# coding=utf-8
from __future__ import unicode_literals
from pyecharts import Style
def test_style():
style = Style(title_pos="center")
s1 = style.add(is_random=True, label_pos="top")
assert style.init_style["title_pos"] == "center"
assert style.init_style.get("title", None) is None
assert s1["is_random"] is True
assert s1["label_pos"] == "top"