wip: fixing more path resolution in tests

This commit is contained in:
2026-03-12 19:28:15 -04:00
parent 1f8bb58219
commit 8bc6eae101
11 changed files with 32 additions and 7 deletions

View File

@@ -34,7 +34,8 @@ history = []
def app_instance(mock_config: Path, mock_project: Path, monkeypatch: pytest.MonkeyPatch) -> App:
monkeypatch.setattr("src.models.CONFIG_PATH", mock_config)
with patch("src.project_manager.load_project") as mock_load, \
patch("src.session_logger.open_session"):
patch("src.session_logger.open_session"), \
patch("src.session_logger.reset_session"):
mock_load.return_value = {
"project": {"name": "test"},
"discussion": {"roles": ["User", "AI"], "active": "main", "discussions": {"main": {"history": []}}},