From 93ee8e9288a456974de839fcaa28c815688a345a Mon Sep 17 00:00:00 2001 From: lvoloshyn-sekoia Date: Wed, 5 Jun 2024 13:35:03 +0300 Subject: [PATCH] Improve conftest --- .../template/{{cookiecutter.module_dir}}/tests/conftest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py index b4612d9..e236460 100644 --- a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py +++ b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py @@ -2,16 +2,15 @@ from tempfile import mkdtemp import pytest - from sekoia_automation import constants @pytest.fixture -def symphony_storage(): +def data_storage(): original_storage = constants.DATA_STORAGE constants.DATA_STORAGE = mkdtemp() yield constants.DATA_STORAGE rmtree(constants.DATA_STORAGE) - constants.SYMPHONY_STORAGE = original_storage + constants.DATA_STORAGE = original_storage