forked from p15670423/monkey
UT: Fix AgentConfiguration object creation logic FileAgentConfigurationRepository tests
This commit is contained in:
parent
f4e3bc2a89
commit
016cf80cdd
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue