Variables can be patched as follows: from mock import patch @patch('module.variable', new_value) For example: import alphabet from mock import patch ...
確定! 回上一頁