fix(providers): add missing ProviderType.GEMINI step definition for fallback order test
CI / benchmark-publish (pull_request) Has been skipped
CI / push-validation (pull_request) Successful in 24s
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 53s
CI / quality (pull_request) Successful in 1m13s
CI / lint (pull_request) Successful in 1m14s
CI / typecheck (pull_request) Successful in 1m33s
CI / security (pull_request) Successful in 1m40s
CI / e2e_tests (pull_request) Successful in 4m44s
CI / integration_tests (pull_request) Successful in 4m46s
CI / unit_tests (pull_request) Successful in 5m3s
CI / docker (pull_request) Successful in 1m46s
CI / coverage (pull_request) Successful in 11m45s
CI / status-check (pull_request) Successful in 3s
CI / benchmark-publish (pull_request) Has been skipped
CI / push-validation (pull_request) Successful in 24s
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 53s
CI / quality (pull_request) Successful in 1m13s
CI / lint (pull_request) Successful in 1m14s
CI / typecheck (pull_request) Successful in 1m33s
CI / security (pull_request) Successful in 1m40s
CI / e2e_tests (pull_request) Successful in 4m44s
CI / integration_tests (pull_request) Successful in 4m46s
CI / unit_tests (pull_request) Successful in 5m3s
CI / docker (pull_request) Successful in 1m46s
CI / coverage (pull_request) Successful in 11m45s
CI / status-check (pull_request) Successful in 3s
Add @then(the provider registry result should be ProviderType.GEMINI) step definition to features/steps/provider_registry_steps.py. This step was referenced by the new Gemini-only user gets GEMINI as default provider via fallback order scenario in provider_registry_coverage.feature but had no corresponding implementation, causing the unit_tests CI gate to fail. The new step follows the same pattern as the existing ProviderType.OPENAI and ProviderType.ANTHROPIC result steps.
This commit is contained in:
@@ -728,6 +728,11 @@ def step_impl_result_provider_type_anthropic(context: Any) -> None:
|
||||
assert context.result == _ensure_provider_type(context).ANTHROPIC
|
||||
|
||||
|
||||
@then("the provider registry result should be ProviderType.GEMINI")
|
||||
def step_impl_result_provider_type_gemini(context: Any) -> None:
|
||||
assert context.result == _ensure_provider_type(context).GEMINI
|
||||
|
||||
|
||||
@then('the provider registry result should be "{value}"')
|
||||
def step_impl_result_string(context: Any, value: str) -> None:
|
||||
assert context.result == value, f"Expected {value!r}, got {context.result!r}"
|
||||
|
||||
Reference in New Issue
Block a user