UT: Fix AgentConfiguration object creation logic FileAgentConfigurationRepository tests

This commit is contained in:
Shreya Malviya 2022-08-30 12:39:14 +05:30
parent f4e3bc2a89
commit 016cf80cdd
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ def repository(default_agent_configuration):
def test_store_agent_config(repository):
agent_configuration = AgentConfiguration.from_mapping(AGENT_CONFIGURATION)
agent_configuration = AgentConfiguration(**AGENT_CONFIGURATION)
repository.store_configuration(agent_configuration)
retrieved_agent_configuration = repository.get_configuration()
@ -36,7 +36,7 @@ def test_get_agent_config_retrieval_error(default_agent_configuration):
def test_reset_to_default(repository, default_agent_configuration):
agent_configuration = AgentConfiguration.from_mapping(AGENT_CONFIGURATION)
agent_configuration = AgentConfiguration(**AGENT_CONFIGURATION)
repository.store_configuration(agent_configuration)
repository.reset_to_default()