Upgrade PromptKit to v0.8.0
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user