From 36aee971c41be5bbe62118653d1879fd8d09db44 Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Tue, 12 Sep 2023 11:16:11 -0400 Subject: [PATCH] fix test errors --- tests/test_endpoints.py | 4 ++-- tests/test_validate_code.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_endpoints.py b/tests/test_endpoints.py index cbb1eb08c..9936df52f 100644 --- a/tests/test_endpoints.py +++ b/tests/test_endpoints.py @@ -267,7 +267,7 @@ def square(x) assert response3.status_code == 200 assert response3.json() == { "imports": {"errors": []}, - "function": {"errors": ["expected ':' (, line 4)"]}, + "function": {"errors": ["invalid syntax (, line 4)"]}, } # Test case with invalid JSON payload @@ -290,7 +290,7 @@ def square(x) assert response6.status_code == 200 assert response6.json() == { "imports": {"errors": []}, - "function": {"errors": ["expected ':' (, line 4)"]}, + "function": {"errors": ["invalid syntax (, line 4)"]}, } diff --git a/tests/test_validate_code.py b/tests/test_validate_code.py index cacf3669c..87ff6b7e4 100644 --- a/tests/test_validate_code.py +++ b/tests/test_validate_code.py @@ -44,7 +44,7 @@ def square(x) errors3 = validate_code(code3) assert errors3 == { "imports": {"errors": []}, - "function": {"errors": ["expected ':' (, line 4)"]}, + "function": {"errors": ["invalid syntax (, line 4)"]}, }