moo.agent.tests.test_config

Tests for moo/agent/config.py.

These tests do not require DJANGO_SETTINGS_MODULE and do not import from moo.core.

Functions

test_accepts_path_string(tmp_path)

test_api_key_env_defaults_when_absent(tmp_path)

api_key_env is optional; defaults to ANTHROPIC_API_KEY.

test_bedrock_config(tmp_path)

Bedrock provider with aws_region; api_key_env is optional.

test_idle_wakeup_seconds_defaults_to_60(tmp_path)

TOML without idle_wakeup_seconds uses the 60.0 default.

test_idle_wakeup_seconds_reads_from_toml(...)

test_load_config_all_fields(tmp_path)

test_load_config_soul_path_points_to_soul_md(...)

test_malformed_toml_raises_value_error(tmp_path)

test_missing_required_field_raises_value_error(...)

test_missing_settings_toml_raises(tmp_path)

test_missing_soul_md_raises(tmp_path)