Skip to content

Commit a8aa805

Browse files
Add more tests
1 parent a1ba5d4 commit a8aa805

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

tests/unit_tests/client/test_client.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,16 +725,23 @@ def test_plan_multi_parameter_fallback_help_text(client):
725725
PlanModel(
726726
name="foo",
727727
schema={
728-
"properties": {"one": {}, "two": {}, "three": {}, "four": {}},
729-
"required": ["one"],
728+
"properties": {
729+
"one": {},
730+
"two": {
731+
"anyOf": [{"items": {}, "type": "array"}, {"type": "boolean"}],
732+
},
733+
"three": {},
734+
"four": {},
735+
},
736+
"required": ["one", "two"],
730737
},
731738
),
732739
client,
733740
)
734741
assert (
735742
plan.help_text == "Plan foo(\n"
736743
" one: Any,\n"
737-
" two: Any | None = None,\n"
744+
" two: list[Any] | bool,\n"
738745
" three: Any | None = None,\n"
739746
" four: Any | None = None\n"
740747
")"

0 commit comments

Comments
 (0)