How to use the awe.chart.NoOpTransformer function in awe

To help you get started, we’ve selected a few awe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dankilman / awe / tests / test_chart.py View on Github external
def test_transformer_add():
    transformer = chart.NoOpTransformer()
    existing = {
        'c1': {
            'series': [
                {'data': [1, 2], 'name': 'c1s1'},
                {'data': [3, 4], 'name': 'c1s2'},
            ],
            'title': 'c1',
            'type': 'line'
        },
        'c2': {
            'series': [
                {'data': [5, 6], 'name': 'c2s1'},
                {'data': [7, 8], 'name': 'c2s2'},
            ],
            'title': 'c2',
            'type': 'line'
github dankilman / awe / tests / test_chart.py View on Github external
def test_noop_transformer():
    noop = chart.NoOpTransformer()
    data = object()
    assert noop.transform(data) is data