def test_gauge(): gauge = Gauge() gauge.range = [-10, 10] gauge.add('Need l', [2.3, 5.12]) gauge.add('No', [99, -99]) return gauge.render_response()
def test_render(): """Tests that a gauge plots""" chart = Gauge() chart.range = [0,40] chart.add('Connor', 21) chart.add('Mike', 30) chart.add('Jules', 10) assert chart.render()
def test_gauge(): gauge = Gauge() gauge.range = [-10, 10] gauge.add("Need l", [2.3, 5.12]) gauge.add("Need m", [-4]) gauge.add("Need z", [-10, 10.5]) gauge.add("No", [99, -99]) gauge.y_labels = [{"label": "X", "value": 6}, {"label": "><", "value": -6}] return gauge.render_response()
def test_gauge(): gauge = Gauge() gauge.range = [-10, 10] gauge.add('Need l', [2.3, 5.12]) gauge.add('Need m', [-4]) gauge.add('Need z', [-10, 10.5]) gauge.add('No', [99, -99]) gauge.y_labels = [ {'label': 'X', 'value': 6}, {'label': '><', 'value': -6} ] return gauge.render_response()