We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ecc737 commit 81f8903Copy full SHA for 81f8903
tests/test_tox.py
@@ -7,19 +7,15 @@
7
import pytest
8
import shutil
9
10
-set_up_directories = [
11
- "test_scan",
12
- "test_scan2",
13
- "test_scan3"
14
-]
15
remove_directories = ["test_scan", "test_scan2", "test_scan3"]
16
17
18
@pytest.fixture(scope="module", autouse=True)
19
def setup_test_result_dir_and_teardown():
20
print("==============setup==============")
21
- for dir in set_up_directories:
22
- os.makedirs(dir, exist_ok=True)
+ for dir in remove_directories:
+ if os.path exists(dir):
+ shutil.rmtree(dir)
23
24
yield
25
0 commit comments