For anyone interested, you can also wrap this up into a little fixture for use with pytest: @pytest.fixture def mock_server(request): server = MockServer() ...
確定! 回上一頁