Пример #1
0
 def __exit__(self, *args):
     """
     Stops all patched objects using 'with' context management.
     No error checking or stack trace evaluation occurs at the
     moment.
     """
     for patch in self.patch_objects:
         patch.stop()
Пример #2
0
 def tearDown(self):
     for patch in self._patchers:
         patch.stop()
Пример #3
0
def unmock():
    patch.stop()
Пример #4
0
def teardown_module():
    patch.stop()
Пример #5
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
Пример #6
0
def unmock():
    patch.stop()
Пример #7
0
 def tearDown(self):
     for patch in self._patches:
         patch.stop()
Пример #8
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
Пример #9
0
def tearDownModule():
    for patch in PATCHES:
        patch.stop()