def patch_parse_coordinates(request): def parse_coordinates_mock_return(c): return c # This should probably be request, not requests, but this mistake has lead # to no errors # TODO: determine if this patch is ever used mp = requests.getfuncargvalue("monkeypatch") mp.setattr(commons, 'parse_coordinates', parse_coordinates_mock_return) return mp
def patch_parse_coordinates(request): def parse_coordinates_mock_return(c): return c mp = requests.getfuncargvalue("monkeypatch") mp.setattr(commons, 'parse_coordinates', parse_coordinates_mock_return) return mp