mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 15:49:29 +00:00
test: store_manager sanity check
Refs: OPS.19
This commit is contained in:
parent
31b9ed2d01
commit
e4cabf9964
2 changed files with 28 additions and 0 deletions
|
|
@ -3,8 +3,15 @@ from pathlib import Path
|
|||
|
||||
import pytest
|
||||
|
||||
from senju.store_manager import StoreManager
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def temp_data_dir():
|
||||
"""Create a temporary directory for test data"""
|
||||
return Path(tempfile.mkdtemp())
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def store_manager(temp_data_dir):
|
||||
return StoreManager(temp_data_dir/"store.db")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue