def test_JsonFetcher_decodes_empty_json_correctly(dummy_pv, empty_data, json_fetcher):
    mock_response = utils.mock_response(json_str='[]')
    json_fetcher._fetch_data = mock_response
    aa_data = json_fetcher.get_values(dummy_pv, EARLY_DATE, LATE_DATE)
    assert (aa_data == empty_data)
def test_JsonFetcher_decodes_empty_json_correctly(dummy_pv, empty_data, json_fetcher):
    mock_response = utils.mock_response(json_str='[]')
    json_fetcher._fetch_data = mock_response
    aa_data = json_fetcher.get_values(dummy_pv, EARLY_DATE, LATE_DATE)
    assert (aa_data == empty_data)