from handler import EndpointHandler endpoint = EndpointHandler('') for x in endpoint({'text': 'how are you?'}): print('passed') print(x)