Pytest Test Async Function Typescript