fix test errors
This commit is contained in:
parent
374ae22563
commit
36aee971c4
2 changed files with 3 additions and 3 deletions
|
|
@ -267,7 +267,7 @@ def square(x)
|
||||||
assert response3.status_code == 200
|
assert response3.status_code == 200
|
||||||
assert response3.json() == {
|
assert response3.json() == {
|
||||||
"imports": {"errors": []},
|
"imports": {"errors": []},
|
||||||
"function": {"errors": ["expected ':' (<unknown>, line 4)"]},
|
"function": {"errors": ["invalid syntax (<unknown>, line 4)"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
# Test case with invalid JSON payload
|
# Test case with invalid JSON payload
|
||||||
|
|
@ -290,7 +290,7 @@ def square(x)
|
||||||
assert response6.status_code == 200
|
assert response6.status_code == 200
|
||||||
assert response6.json() == {
|
assert response6.json() == {
|
||||||
"imports": {"errors": []},
|
"imports": {"errors": []},
|
||||||
"function": {"errors": ["expected ':' (<unknown>, line 4)"]},
|
"function": {"errors": ["invalid syntax (<unknown>, line 4)"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ def square(x)
|
||||||
errors3 = validate_code(code3)
|
errors3 = validate_code(code3)
|
||||||
assert errors3 == {
|
assert errors3 == {
|
||||||
"imports": {"errors": []},
|
"imports": {"errors": []},
|
||||||
"function": {"errors": ["expected ':' (<unknown>, line 4)"]},
|
"function": {"errors": ["invalid syntax (<unknown>, line 4)"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue