Here are the examples of the python api unittest.mock.mock.return_value taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : testmock.py
with MIT License
from godot-extended-libraries
with MIT License
from godot-extended-libraries
def test_change_return_value_via_delegate(self):
def f(): pass
mock = create_autospec(f)
mock.mock.return_value = 1
self.assertEqual(mock(), 1)
def test_change_side_effect_via_delegate(self):