Ejemplo n.º 1
0
def test_bar_chart_transform():
    with patch.object(GeckoboardService, 'transform', return_value=None) as mock_transform:
        gecko_job_bar_chart = GeckoboardService(LeRestResponse(resp_ex.FULL_GROUP_RESP), req_ex.SERVICE_API_KEY, conf_ex.GECKO_BAR_CHART_CONFIG)
        gecko_job_bar_chart.transform()
        assert mock_transform.called
Ejemplo n.º 2
0
def test_number_stat_transform():
    with patch.object(GeckoboardService, 'transform', return_value=None) as mock_transform:
        gecko_job_number_stat = GeckoboardService(LeRestResponse(resp_ex.FULL_GROUP_RESP), req_ex.SERVICE_API_KEY,
                                                  conf_ex.GECKO_NUMBER_STAT_CONFIG)
        gecko_job_number_stat.transform()
        assert mock_transform.called