Example #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()
Example #2
0
File: case.py Project: socek/impaf
 def tearDown(self):
     for patch in self._patchers:
         patch.stop()
Example #3
0
def unmock():
    patch.stop()
Example #4
0
def teardown_module():
    patch.stop()
Example #5
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
Example #6
0
def unmock():
    patch.stop()
Example #7
0
 def tearDown(self):
     for patch in self._patches:
         patch.stop()
Example #8
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
Example #9
0
def tearDownModule():
    for patch in PATCHES:
        patch.stop()