From 40f69f0e589e631f1043cbd79dde2760ab0581f1 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 2 Aug 2022 14:02:36 +0530 Subject: [PATCH] UT: Modify test_authentication_successful to not check for 'error' field in response --- .../unit_tests/monkey_island/cc/resources/auth/test_auth.py | 1 - 1 file changed, 1 deletion(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_auth.py b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_auth.py index 465b0f772..6d5af8a94 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_auth.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_auth.py @@ -37,7 +37,6 @@ def test_authentication_successful(make_auth_request, mock_authentication_servic response = make_auth_request(TEST_REQUEST) assert response.status_code == 200 - assert response.json["error"] == "" assert re.match( r"^[a-zA-Z0-9+/=]+\.[a-zA-Z0-9+/=]+\.[a-zA-Z0-9+/=\-_]+$", response.json["access_token"] )