Skip to content

Commit 89ced15

Browse files
committed
setup revise
Signed-off-by: hkkim <[email protected]>
1 parent 1a1ff52 commit 89ced15

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_tox.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@
77
import pytest
88
import shutil
99

10-
set_up_directories = [
11-
"test_scan",
12-
"test_scan2",
13-
"test_scan3"
14-
]
1510
remove_directories = ["test_scan", "test_scan2", "test_scan3"]
1611

1712

1813
@pytest.fixture(scope="module", autouse=True)
1914
def setup_test_result_dir_and_teardown():
2015
print("==============setup==============")
21-
for dir in set_up_directories:
22-
os.makedirs(dir, exist_ok=True)
16+
for dir in remove_directories:
17+
if os.path exists(dir):
18+
shutil.rmtree(dir)
2319

2420
yield
2521

0 commit comments

Comments
 (0)