19 lines
551 B
Python
19 lines
551 B
Python
"""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}
|