Skip to content

Commit 0986a31

Browse files
Assert PROMPT_GROUP_INVALID constant in category test
Address CoPilot review on #228: test_error_categories_match_spec pinned PromptGroupInvalid.category but not the exported PROMPT_GROUP_INVALID constant, so a regression in the constant value or export could slip through. Add the constant assertion (and its import) alongside the other three categories. Test-only; no behavior change.
1 parent c6b1f44 commit 0986a31

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/test_prompts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from openarmature.llm.messages import Message, UserMessage
2222
from openarmature.prompts import (
23+
PROMPT_GROUP_INVALID,
2324
PROMPT_NOT_FOUND,
2425
PROMPT_RENDER_ERROR,
2526
PROMPT_STORE_UNAVAILABLE,
@@ -56,6 +57,7 @@ def test_error_categories_match_spec() -> None:
5657
assert PROMPT_NOT_FOUND == "prompt_not_found"
5758
assert PROMPT_RENDER_ERROR == "prompt_render_error"
5859
assert PROMPT_STORE_UNAVAILABLE == "prompt_store_unavailable"
60+
assert PROMPT_GROUP_INVALID == "prompt_group_invalid"
5961

6062

6163
def test_transient_categories_contains_only_store_unavailable() -> None:

0 commit comments

Comments
 (0)