UT: Fix POST request in test_agent_configuration_endpoint to use new pydantic model AgentConfiguration

This commit is contained in:
Shreya Malviya 2022-08-29 19:46:48 +05:30
parent fe792ffc6f
commit e68a5391c8
1 changed files with 1 additions and 1 deletions

View File

@ -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