Files
sientia-dataops-model-manager/tests/test_runtime_paths.py
vitor-aignosi c0bef2d688 feat: update values.yaml and refactor cleanup paths
- Changed project name in values.yaml from "sientia-dataops-model-manager" to "sientia-model-manager".
- Added new environment variables for GitHub repository and branch configuration.
- Refactored cleanup paths to use a centralized REPORTS_TEMP_DIR constant for consistency.
- Updated runtime configurations and adjusted volume mounts for better resource management.
- Enabled SSH access for the model manager and disabled Grafana dashboard creation.
- Updated tests to reflect changes in directory paths and environment variable usage.
2026-04-09 16:37:36 -03:00

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}