|
@@ -176,15 +176,6 @@ def default_multi_sheet_data_frame():
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-@pytest.fixture(scope="session", autouse=True)
|
|
|
|
-def cleanup_files():
|
|
|
|
- yield
|
|
|
|
-
|
|
|
|
- for path in [".data", ".my_data", "user_data", ".taipy"]:
|
|
|
|
- if os.path.exists(path):
|
|
|
|
- shutil.rmtree(path, ignore_errors=True)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@pytest.fixture(scope="function")
|
|
@pytest.fixture(scope="function")
|
|
def current_datetime():
|
|
def current_datetime():
|
|
return current_time
|
|
return current_time
|
|
@@ -314,6 +305,19 @@ def tmp_sqlite(tmpdir_factory):
|
|
return os.path.join(fn.strpath, "test.db")
|
|
return os.path.join(fn.strpath, "test.db")
|
|
|
|
|
|
|
|
|
|
|
|
+@pytest.fixture(scope="session", autouse=True)
|
|
|
|
+def cleanup_files():
|
|
|
|
+ for path in [".data", ".my_data", "user_data", ".taipy"]:
|
|
|
|
+ if os.path.exists(path):
|
|
|
|
+ shutil.rmtree(path, ignore_errors=True)
|
|
|
|
+
|
|
|
|
+ yield
|
|
|
|
+
|
|
|
|
+ for path in [".data", ".my_data", "user_data", ".taipy"]:
|
|
|
|
+ if os.path.exists(path):
|
|
|
|
+ shutil.rmtree(path, ignore_errors=True)
|
|
|
|
+
|
|
|
|
+
|
|
@pytest.fixture(scope="function", autouse=True)
|
|
@pytest.fixture(scope="function", autouse=True)
|
|
def clean_repository(init_config, init_managers, init_orchestrator, init_notifier, clean_argparser):
|
|
def clean_repository(init_config, init_managers, init_orchestrator, init_notifier, clean_argparser):
|
|
clean_argparser()
|
|
clean_argparser()
|