def test_bar_chart_push(): httpretty.register_uri(httpretty.POST, req_ex.DEST_URL, body="OK") 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.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(LeRestResponse(resp_ex.FULL_GROUP_RESP), req_ex.SERVICE_API_KEY, conf_ex.GECKO_NUMBER_STAT_CONFIG) gecko_job_number_stat.push({}) assert httpretty.has_request()