Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_num1(self):
- return self.num1
- @mock.patch('script.script.MathTest.function1')
- def test_function(mock_func):
- mock_func.return_value = 99
- assert script.script_function() == 99
- def script_function():
- result = object.function1(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement