Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar257ammar committed Dec 10, 2024
1 parent 8b47cd5 commit ce9b716
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions app/tests/hanging_protocols_tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,42 @@ def test_hanging_protocol_clientside():
},
),
("main", False, {"json": ["Enter a valid JSON."]}),
(
"[1,2,3,4,5]",
False,
{
"json": [
"JSON does not fulfill schema: instance None of are valid under the given schema"
]
},
),
(
'["test1", "test2", "test3"]',
False,
{
"json": [
"JSON does not fulfill schema: instance None of are valid under the given schema"
]
},
),
(
"[[],[],[]]",
False,
{
"json": [
"JSON does not fulfill schema: instance None of are valid under the given schema"
]
},
),
(
"[{},{},{}]",
False,
{
"json": [
"JSON does not fulfill schema: instance has non-unique elements"
]
},
),
(
"true",
False,
Expand Down

0 comments on commit ce9b716

Please sign in to comment.