Make use of patch.stopall()

This commit is contained in:
Eric Torres
2019-04-17 11:53:05 -07:00
parent 3bbd2b2793
commit dbb5c0fa8b
5 changed files with 10 additions and 29 deletions

View File

@@ -31,8 +31,7 @@ class TestMergeFiles(unittest.TestCase):
self.assertIsInstance(config.merge_files([]), Path)
def tearDown(self):
self.patched_path.stop()
self.patched_tempfile.stop()
patch.stopall()
class TestParseConfig(unittest.TestCase):
@@ -54,6 +53,4 @@ class TestParseConfig(unittest.TestCase):
config.parse_configfile()
def tearDown(self):
self.patched_config_file.stop()
self.patched_path.stop()
self.patched_serialize.stop()
patch.stopall()