FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 7e0c3b3a authored by Mark Driver's avatar Mark Driver
Browse files

update clean up.

parent 8139055d
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@ import logging
import unittest
import pandas
import pathlib
import os
import shutil
import numpy as np
from testfixtures import Replacer
from testfixtures.popen import MockPopen
......@@ -69,6 +71,16 @@ class SimilarityAnalysisRunnerTestCase(unittest.TestCase):
None.
"""
for filename in os.listdir("sim"):
file_path = os.path.join("sim", filename)
try:
if os.path.isfile(file_path) or os.path.islink(file_path):
os.unlink(file_path)
elif os.path.isdir(file_path):
shutil.rmtree(file_path)
except Exception as e:
LOGGER.error('Failed to delete %s. Reason: %s', file_path, e)
os.rmdir("sim")
def test_run_similarity_analysis(self):
"""Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment