diff options
Diffstat (limited to 'internal/llmutils/client_test.go')
| -rw-r--r-- | internal/llmutils/client_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/llmutils/client_test.go b/internal/llmutils/client_test.go index 0cbd26d..c688213 100644 --- a/internal/llmutils/client_test.go +++ b/internal/llmutils/client_test.go @@ -5,8 +5,15 @@ import ( "testing" "codeberg.org/snonux/hexai/internal/appconfig" + "codeberg.org/snonux/hexai/internal/llm" ) +// TestMain registers all built-in LLM providers before tests run. +func TestMain(m *testing.M) { + llm.RegisterAllProviders() + os.Exit(m.Run()) +} + func TestNewClientFromApp_Ollama(t *testing.T) { cfg := appconfig.App{CoreConfig: appconfig.CoreConfig{Provider: "ollama"}} c, err := NewClientFromApp(cfg) |
