Upgrade PromptKit to v0.8.0

This commit is contained in:
2026-08-25 19:32:22 +00:00
parent 515cdada04
commit 24a8579cee
4 changed files with 8 additions and 6 deletions

View File

@@ -507,7 +507,7 @@ func TestNewValidatesConfiguration(t *testing.T) {
}
}
func TestLocalBackendAndMissingCredentialBehavior(t *testing.T) {
func TestLocalBackendAndOptionalCredentialSourceBehavior(t *testing.T) {
t.Setenv("WEATHERREPORTER_TEST_MISSING_KEY", "")
profiles := testProfileDirectory(t, `id: local-profile
backend: local
@@ -546,8 +546,8 @@ api_key_env: WEATHERREPORTER_TEST_MISSING_KEY
request := testExecuteRequest()
request.ProfileID = "credential-profile"
result, err := credentialAdapter.Execute(context.Background(), request, nil)
if result != nil || promptexec.CategoryOf(err) != promptexec.MissingCredential || client.callCount() != 0 {
t.Fatalf("credential result/category/calls = %#v/%q/%d", result, promptexec.CategoryOf(err), client.callCount())
if err != nil || result == nil || client.callCount() != 1 {
t.Fatalf("credential result/error/calls = %#v/%v/%d", result, err, client.callCount())
}
}