forked from p15670423/monkey
UT: Fix POST request in test_agent_configuration_endpoint to use new pydantic model AgentConfiguration
This commit is contained in:
parent
fe792ffc6f
commit
e68a5391c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue