pytest -console-scripts makes this possible, and indeed mocks to external functions work. Here's a test case for the above :.
確定! 回上一頁