mooncak397 Claude Opus 5.5 commited on
Commit
e68ddea
·
1 Parent(s): ebe48a7

tests: refusal test uses a German question (entry now guesses the language)

Browse files
Files changed (1) hide show
  1. tests/test_graph.py +1 -1
tests/test_graph.py CHANGED
@@ -135,7 +135,7 @@ def test_1000_chars_still_goes_to_the_model():
135
  def test_refusal_gives_idk_not_a_crash(kind):
136
  from langchain_core.exceptions import ModelRefusalError
137
 
138
- assert answer(FakeModel(lang="de", fail={kind: ModelRefusalError()}), lang="de") == FS["idk_de"]
139
 
140
 
141
  def test_rate_limit_and_5xx_give_busy():
 
135
  def test_refusal_gives_idk_not_a_crash(kind):
136
  from langchain_core.exceptions import ModelRefusalError
137
 
138
+ assert answer(FakeModel(lang="de", fail={kind: ModelRefusalError()}), "Wo arbeitet er?", lang="de") == FS["idk_de"]
139
 
140
 
141
  def test_rate_limit_and_5xx_give_busy():