|
|
@ -23,6 +23,7 @@ from pygal import ( |
|
|
|
from pygal._compat import u |
|
|
|
from pygal._compat import u |
|
|
|
from pygal.test.utils import texts |
|
|
|
from pygal.test.utils import texts |
|
|
|
from pygal.test import pytest_generate_tests, make_data |
|
|
|
from pygal.test import pytest_generate_tests, make_data |
|
|
|
|
|
|
|
from uuid import uuid4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_config_behaviours(): |
|
|
|
def test_config_behaviours(): |
|
|
@ -294,7 +295,7 @@ def test_include_x_axis(Chart): |
|
|
|
|
|
|
|
|
|
|
|
def test_css(Chart): |
|
|
|
def test_css(Chart): |
|
|
|
css = "{{ id }}text { fill: #bedead; }\n" |
|
|
|
css = "{{ id }}text { fill: #bedead; }\n" |
|
|
|
css_file = '/tmp/pygal_custom_style.css' |
|
|
|
css_file = '/tmp/pygal_custom_style-%s.css' % uuid4() |
|
|
|
with open(css_file, 'w') as f: |
|
|
|
with open(css_file, 'w') as f: |
|
|
|
f.write(css) |
|
|
|
f.write(css) |
|
|
|
|
|
|
|
|
|
|
|