icanspell

This commit is contained in:
William Fu-Hinthorn
2024-09-06 12:50:53 -07:00
parent 1832ed46ef
commit cc55adac46
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ class StateGraph(Graph):
schema_name = getattr(schema, "__name__", "")
raise ValueError(
f"Invalid managed channels detected in {schema_name}: {names}."
" Managed channels are not permited in Input/Output schema."
" Managed channels are not permitted in Input/Output schema."
)
self.schemas[schema] = {**channels, **managed}
for key, channel in channels.items():
+2 -2
View File
@@ -220,7 +220,7 @@ def test_raises_invalid_managed():
for _state, _inp, _outp in bad_input_examples:
with pytest.raises(
ValueError,
match="Invalid managed channels detected in BadInputState: some_input_channel. Managed channels are not permited in Input/Output schema.",
match="Invalid managed channels detected in BadInputState: some_input_channel. Managed channels are not permitted in Input/Output schema.",
):
StateGraph(_state, input=_inp, output=_outp)
bad_output_examples = [
@@ -232,6 +232,6 @@ def test_raises_invalid_managed():
for _state, _inp, _outp in bad_output_examples:
with pytest.raises(
ValueError,
match="Invalid managed channels detected in BadOutputState: some_output_channel. Managed channels are not permited in Input/Output schema.",
match="Invalid managed channels detected in BadOutputState: some_output_channel. Managed channels are not permitted in Input/Output schema.",
):
StateGraph(_state, input=_inp, output=_outp)