Closed mvo5 closed 2 years ago
Instead of monkey patching unattended_upgrade.DISTOR_* this commit adds a proper TestBase.mock_distro() helper that uses unittest.mock.patch() and restores the state after the test again properly.
unattended_upgrade.DISTOR_*
TestBase.mock_distro()
Instead of monkey patching
unattended_upgrade.DISTOR_*
this commit adds a properTestBase.mock_distro()
helper that uses unittest.mock.patch() and restores the state after the test again properly.