I have a class TestCase where all the tests, except one, need to do the same patch of an object. I'm using Python Mock , and I did the following:
@mock.patch('metodo_alvo', mock.Mock(return_value=1))
class Tests(TestCase):
@mock.p...
asked by
08.01.2014 / 23:19