mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-27 19:14:27 +01:00
14 lines
558 B
Python
14 lines
558 B
Python
from exchange.invalid_choice_error import InvalidChoiceError
|
|
|
|
|
|
def test_load_invalid_choice_error():
|
|
attribute_name = "moderator"
|
|
attribute_value = "not_exist"
|
|
available_values = ["truncate", "summarizer"]
|
|
error = InvalidChoiceError(attribute_name, attribute_value, available_values)
|
|
|
|
assert error.attribute_name == attribute_name
|
|
assert error.attribute_value == attribute_value
|
|
assert error.attribute_value == attribute_value
|
|
assert error.message == "Unknown moderator: not_exist. Available moderators: truncate, summarizer"
|