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

@@ -43,7 +43,7 @@ class TestHierarchyPaths(unittest.TestCase):
h._gen_metadata()
def tearDown(self):
self.patched_path.stop()
patch.stopall()
class TestHierarchyMetadata(unittest.TestCase):
@@ -123,6 +123,4 @@ class TestHierarchyCleanup(unittest.TestCase):
self.mocked_shutil.rmtree.assert_called_once()
def tearDown(self):
self.patched_metadata.stop()
self.patched_path.stop()
self.patched_shutil.stop()
patch.stopall()