Skip to content

Commit

Permalink
Improve conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
lvoloshyn-sekoia committed Jun 5, 2024
1 parent cb1f42b commit 93ee8e9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 93ee8e9

Please sign in to comment.