def mocked_reverse_get(*args, **kwargs): params = kwargs['params'] pnt = QgsPoint(params['lon'], params['lat']) return MockedResponse(pnt.asWkt())