def test_inline_css(Chart):
 css = '{{ id }}text { fill: #bedead; }\n'
 config = Config()
 config.css.append(('inline:' + css))
 chart = Chart(config)
 chart.add('/', [10, 1, 5])
 svg = chart.render().decode('utf-8')
 assert ('#bedead' in svg)

def test_inline_css ( Chart ) : css = '{{ id }}text { fill: #bedead; }\n' config = Config ( ) config . css . append ( ( 'inline:' + css ) ) chart = Chart ( config ) chart . add ( '/' , [ 10 , 1 , 5 ] ) svg = chart . render ( ) . decode ( 'utf-8' ) assert ( '#bedead' in svg )
test inline css option .