shims · PyPI
https://pypi.org/project/shims21.06.2020 · shims is an Apache2 licensed Python module with patching and mocking utilities.. The unittest package has clever functions for patching modules and objects. Unfortunately, the common interface is not very readable: import unittest from unittest.mock import patch class TestThing (unittest. TestCase): @patch ("a.b.c") @patch ("x.y.z") @patch ("foo.bar.baz") @patch …