pyecharts/test/test_style.py
2017-10-20 23:12:46 +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"