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