0
Ich bin neu zu verspotten mit Patch. https://docs.python.org/3/library/unittest.mock.html#patch-multipleWeise richtig zu verwenden patch.muliple
Und fragen, warum:
with patch.object(lock, 'cache', local_cache):
with patch.object(lock, 'LOCK_TIMEOUT', 1):
Wie sollte man Setup patch.multiple erhalten gleiche Wirkung:
with patch.multiple(lock, cache=local_cache, LOCK_TIMEOUT=1):
nicht entspricht?