From e68a5391c884a55596cb16fe732e52c4df73b142 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Mon, 29 Aug 2022 19:46:48 +0530 Subject: [PATCH] UT: Fix POST request in test_agent_configuration_endpoint to use new pydantic model AgentConfiguration --- .../monkey_island/cc/resources/test_agent_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_configuration.py b/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_configuration.py index b383bd013..f2010a59e 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_configuration.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_configuration.py @@ -26,7 +26,7 @@ def flask_client(build_flask_client): def test_agent_configuration_endpoint(flask_client): resp = flask_client.put( AGENT_CONFIGURATION_URL, - json=AgentConfiguration.to_mapping(AGENT_CONFIGURATION), + json=AgentConfiguration(**AGENT_CONFIGURATION).dict(), follow_redirects=True, ) assert resp.status_code == 200