MCPcopy Index your code
hub / github.com/StackStorm/st2 / _delete_files

Method _delete_files

st2tests/st2tests/base.py:535–552  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

533 self._delete_files()
534
535 def _delete_files(self):
536 for file_path in self.to_delete_files:
537 if not os.path.isfile(file_path):
538 continue
539
540 try:
541 os.remove(file_path)
542 except Exception:
543 pass
544
545 for file_path in self.to_delete_directories:
546 if not os.path.isdir(file_path):
547 continue
548
549 try:
550 shutil.rmtree(file_path)
551 except Exception:
552 pass
553
554
555class IntegrationTestCase(TestCase):

Callers 2

setUpMethod · 0.95
tearDownMethod · 0.95

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected