File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ def pytest_configure(config):
54
54
config_file .write ("with_testing_base:::%s\n " % with_testing_base )
55
55
config_file .write ("log_path:::%s\n " % log_path )
56
56
config_file .close ()
57
+ log_folder_setup (config )
57
58
58
59
59
60
def pytest_unconfigure ():
@@ -62,11 +63,11 @@ def pytest_unconfigure():
62
63
os .remove (pytest_config )
63
64
64
65
65
- def pytest_runtest_setup ( ):
66
+ def log_folder_setup ( config ):
66
67
# Handle Logging
67
- with_testing_base = pytest . config .getoption ('with_testing_base' )
68
+ with_testing_base = config .getoption ('with_testing_base' )
68
69
if with_testing_base :
69
- log_path = pytest . config .getoption ('log_path' )
70
+ log_path = config .getoption ('log_path' )
70
71
if log_path .endswith ("/" ):
71
72
log_path = log_path [:- 1 ]
72
73
if not os .path .exists (log_path ):
@@ -82,6 +83,11 @@ def pytest_runtest_setup():
82
83
shutil .rmtree (archived_logs )
83
84
84
85
86
+ def pytest_runtest_setup ():
87
+ # A placeholder for a method that runs before every test with pytest
88
+ pass
89
+
90
+
85
91
def pytest_runtest_teardown ():
86
92
# A placeholder for a method that runs after every test with pytest
87
93
pass
You can’t perform that action at this time.
0 commit comments