Island: Rename set_configuration() -> store_configuration()

This commit is contained in:
Mike Salvatore 2022-06-17 12:10:43 -04:00
parent bdce5f84a6
commit 73ead3bb26
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class FileAgentConfigurationRepository(IAgentConfigurationRepository):
return self._schema.loads(configuration_json)
def set_configuration(self, agent_configuration: AgentConfiguration):
def store_configuration(self, agent_configuration: AgentConfiguration):
configuration_json = self._schema.dumps(agent_configuration)
self._file_repository.save_file(

View File

@ -18,7 +18,7 @@ class IAgentConfigurationRepository(ABC):
pass
@abstractmethod
def set_configuration(self, agent_configuration: AgentConfiguration):
def store_configuration(self, agent_configuration: AgentConfiguration):
"""
Store the agent configuration in the repository

View File

@ -10,7 +10,7 @@ def test_store_agent_config():
schema = AgentConfigurationSchema()
agent_configuration = schema.load(AGENT_CONFIGURATION)
repository.set_configuration(agent_configuration)
repository.store_configuration(agent_configuration)
retrieved_agent_configuration = repository.get_configuration()
assert retrieved_agent_configuration == agent_configuration