def test_bar_chart_push():
    httpretty.register_uri(httpretty.POST, req_ex.DEST_URL, body="OK")
    gecko_job_bar_chart = GeckoboardService(resp_ex.FULL_GROUP_RESP,
                                            req_ex.SERVICE_API_KEY,
                                            conf_ex.GECKO_BAR_CHART_CONFIG)
    gecko_job_bar_chart._push({})

    assert httpretty.has_request()
def test__number_stat_push():
    httpretty.register_uri(httpretty.POST, req_ex.DEST_URL, body="OK")
    gecko_job_number_stat = GeckoboardService(resp_ex.FULL_TIMESERIES_RESP,
                                              req_ex.SERVICE_API_KEY,
                                              conf_ex.GECKO_NUMBER_STAT_CONFIG)
    gecko_job_number_stat._push({})

    assert httpretty.has_request()
Exemplo n.º 3
0
def test_bar_chart_push():
    httpretty.register_uri(httpretty.POST, req_ex.DEST_URL,
                           body="OK")
    gecko_job_bar_chart = GeckoboardService(resp_ex.FULL_GROUP_RESP,
                                            req_ex.SERVICE_API_KEY,
                                            conf_ex.GECKO_BAR_CHART_CONFIG)
    gecko_job_bar_chart._push({})

    assert httpretty.has_request()
Exemplo n.º 4
0
def test__number_stat_push():
    httpretty.register_uri(httpretty.POST, req_ex.DEST_URL,
                           body="OK")
    gecko_job_number_stat = GeckoboardService(resp_ex.FULL_TIMESERIES_RESP,
                                              req_ex.SERVICE_API_KEY,
                                              conf_ex.GECKO_NUMBER_STAT_CONFIG)
    gecko_job_number_stat._push({})

    assert httpretty.has_request()