zenfun
|
18ebeae318
|
test(computer): add tests for credentials discovery and config logging
19 tests in test_computer_config.py:
- TestDiscoverBayCredentials (9 tests): env priority, cwd fallback,
missing file, empty key, malformed JSON, endpoint mismatch, slash normalization
- TestLogComputerConfigChanges (10 tests): runtime change, sandbox key change,
token masking, empty token label, missing provider_settings, add/remove keys
Uses unittest.mock.patch on AstrBot custom logger for reliable assertions.
|
2026-02-19 01:26:04 +08:00 |
|
zenfun
|
4b07aa2bc3
|
test(computer): add tests for credentials discovery and config logging
19 new tests in test_computer_config.py:
- TestDiscoverBayCredentials (9 tests): env priority, cwd fallback,
missing file, empty key, malformed JSON, endpoint mismatch, slash normalization
- TestLogComputerConfigChanges (10 tests): runtime change, sandbox key change,
token masking, empty token label, missing provider_settings, add/remove keys
|
2026-02-17 04:24:55 +08:00 |
|