This is a reintroduce of the patch approach which is used in test_client_regenerate_modules I wrote in #533.
test_findgendir was written at a time when unittest.mock.patch was not supported in the standard library, so the temporary patch approach was classical.
While my memory of the sys.modules and import system is still fresh, I refactored these test codebases.
This is a reintroduce of the patch approach which is used in
test_client_regenerate_modules
I wrote in #533.test_findgendir
was written at a time whenunittest.mock.patch
was not supported in the standard library, so the temporary patch approach was classical.While my memory of the
sys.modules
and import system is still fresh, I refactored these test codebases.