personal memory agent
0

Configure Feed

Select the types of activity you want to include in your feed.

solstone / tests / test_journal_start.py
608 B 27 lines
1# SPDX-License-Identifier: AGPL-3.0-only 2# Copyright (c) 2026 sol pbc 3 4from __future__ import annotations 5 6from unittest.mock import MagicMock 7 8from solstone.think import start 9 10 11def test_start_invokes_supervisor(monkeypatch): 12 supervisor = MagicMock() 13 monkeypatch.setattr("solstone.think.supervisor.main", supervisor) 14 15 start.main() 16 17 supervisor.assert_called_once_with() 18 19 20def test_start_exports_only_main_callable(): 21 callables = { 22 name 23 for name, value in vars(start).items() 24 if callable(value) and not name.startswith("__") 25 } 26 27 assert callables == {"main"}