feat: onboarding overhaul, persona-based setup (#132)
This commit is contained in:
@@ -5,6 +5,7 @@ from typer.testing import CliRunner
|
||||
|
||||
from takopi import cli
|
||||
from takopi.config import ConfigError, read_config
|
||||
from takopi.ids import RESERVED_CHAT_COMMANDS
|
||||
from takopi.settings import TakopiSettings
|
||||
|
||||
|
||||
@@ -19,7 +20,7 @@ def test_parse_projects_rejects_engine_alias() -> None:
|
||||
settings.to_projects_config(
|
||||
config_path=Path("takopi.toml"),
|
||||
engine_ids=["codex"],
|
||||
reserved=("cancel",),
|
||||
reserved=RESERVED_CHAT_COMMANDS,
|
||||
)
|
||||
|
||||
|
||||
@@ -30,7 +31,7 @@ def test_parse_projects_default_project_must_exist() -> None:
|
||||
settings.to_projects_config(
|
||||
config_path=Path("takopi.toml"),
|
||||
engine_ids=["codex"],
|
||||
reserved=("cancel",),
|
||||
reserved=RESERVED_CHAT_COMMANDS,
|
||||
)
|
||||
|
||||
|
||||
@@ -94,7 +95,7 @@ def test_projects_default_engine_unknown() -> None:
|
||||
settings.to_projects_config(
|
||||
config_path=Path("takopi.toml"),
|
||||
engine_ids=["codex"],
|
||||
reserved=("cancel",),
|
||||
reserved=RESERVED_CHAT_COMMANDS,
|
||||
)
|
||||
|
||||
|
||||
@@ -108,7 +109,7 @@ def test_projects_chat_id_cannot_match_transport_chat_id() -> None:
|
||||
settings.to_projects_config(
|
||||
config_path=Path("takopi.toml"),
|
||||
engine_ids=["codex"],
|
||||
reserved=("cancel",),
|
||||
reserved=RESERVED_CHAT_COMMANDS,
|
||||
)
|
||||
|
||||
|
||||
@@ -125,7 +126,7 @@ def test_projects_chat_id_must_be_unique() -> None:
|
||||
settings.to_projects_config(
|
||||
config_path=Path("takopi.toml"),
|
||||
engine_ids=["codex"],
|
||||
reserved=("cancel",),
|
||||
reserved=RESERVED_CHAT_COMMANDS,
|
||||
)
|
||||
|
||||
|
||||
@@ -137,6 +138,6 @@ def test_projects_relative_path_resolves(tmp_path: Path) -> None:
|
||||
projects = settings.to_projects_config(
|
||||
config_path=config_path,
|
||||
engine_ids=["codex"],
|
||||
reserved=("cancel",),
|
||||
reserved=RESERVED_CHAT_COMMANDS,
|
||||
)
|
||||
assert projects.projects["z80"].path == config_path.parent / "repo"
|
||||
|
||||
Reference in New Issue
Block a user