mirror of
https://github.com/pyecharts/pyecharts.git
synced 2025-12-08 20:59:23 +00:00
15 lines
395 B
Python
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"
|