Code import - branch release/SIENTIAPDE-1645
This commit is contained in:
18
tests/test_runtime_paths.py
Normal file
18
tests/test_runtime_paths.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Tests for runtime filesystem layout constants."""
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
|
||||
def test_ensure_runtime_directories_creates_expected_paths():
|
||||
from model_manager.runtime_paths import (
|
||||
LOGS_DIR,
|
||||
REPORTS_ROOT,
|
||||
REPORTS_TEMP_DIR,
|
||||
ensure_runtime_directories,
|
||||
)
|
||||
|
||||
with patch('model_manager.runtime_paths.makedirs') as makedirs_mock:
|
||||
ensure_runtime_directories()
|
||||
|
||||
created = {call.args[0] for call in makedirs_mock.call_args_list}
|
||||
assert created == {REPORTS_ROOT, REPORTS_TEMP_DIR, LOGS_DIR}
|
||||
Reference in New Issue
Block a user