Skip to content

Commit 151eb3b

Browse files
committed
Updated the invalid_input condition for parse_raw_prompt
Signed-off-by: Kayvan Mivehnejad <[email protected]>
1 parent c4f6a29 commit 151eb3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
slice(None, None, -2),
3434
]
3535

36+
# List of lists that prompt[0] passes test case#4, but no TypeError will be raised.
3637
@pytest.mark.parametrize(
3738
"invalid_input",
3839
[
39-
["foo", 1], # mixed of string and token
40-
[["foo"], ["bar"]] # list of list of strings
40+
[[1, 2], ["foo", "bar"]]
4141
]
4242
)
4343
def test_invalid_input_raise_type_error(invalid_input):

0 commit comments

Comments
 (0)