Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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'
def test_noop_transformer():
noop = chart.NoOpTransformer()
data = object()
assert noop.transform(data) is data