Skip to content

Commit da4bbc5

Browse files
committed
fix failing test
1 parent f8f8273 commit da4bbc5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/e2e/features/steps/info.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,16 @@ def check_shield_structure(context: Context) -> None:
8484

8585
assert found_shield is not None, "No shield found in response"
8686

87+
expected_model = context.default_model
88+
8789
# Validate structure and values
8890
assert found_shield["type"] == "shield", "type should be 'shield'"
8991
assert (
9092
found_shield["provider_id"] == "llama-guard"
9193
), "provider_id should be 'llama-guard'"
9294
assert (
93-
found_shield["provider_resource_id"] == "llama-guard-shield"
94-
), "provider_resource_id should be 'llama-guard-shield'"
95+
found_shield["provider_resource_id"] == expected_model
96+
), f"provider_resource_id should be '{expected_model}'"
9597
assert (
9698
found_shield["identifier"] == "llama-guard-shield"
9799
), "identifier should be 'llama-guard-shield'"

0 commit comments

Comments
 (0)