UT: Rename PropagationCredentialsRepository to

StubPropagationCredentialsRepository
This commit is contained in:
Ilija Lazoroski 2022-07-06 14:48:01 +02:00
parent a27edfa94b
commit 794277797b
3 changed files with 4 additions and 4 deletions

View File

@ -3,4 +3,4 @@ from .mock_file_repository import MockFileRepository, FILE_CONTENTS, FILE_NAME
from .open_error_file_repository import OpenErrorFileRepository
from .in_memory_agent_configuration_repository import InMemoryAgentConfigurationRepository
from .in_memory_simulation_configuration import InMemorySimulationRepository
from .propagation_credentials_repository import PropagationCredentialsRepository
from .stub_propagation_credentials_repository import StubPropagationCredentialsRepository

View File

@ -32,7 +32,7 @@ propagation_credentials_2 = {
}
class PropagationCredentialsRepository(ICredentialsRepository):
class StubPropagationCredentialsRepository(ICredentialsRepository):
def get_configured_credentials(self) -> Sequence[Credentials]:
pass

View File

@ -2,7 +2,7 @@ import json
import pytest
from tests.common import StubDIContainer
from tests.monkey_island import PropagationCredentialsRepository
from tests.monkey_island import StubPropagationCredentialsRepository
from tests.unit_tests.monkey_island.conftest import get_url_for_resource
from monkey_island.cc.repository import ICredentialsRepository
@ -13,7 +13,7 @@ from monkey_island.cc.resources.propagation_credentials import PropagationCreden
def flask_client(build_flask_client):
container = StubDIContainer()
container.register(ICredentialsRepository, PropagationCredentialsRepository)
container.register(ICredentialsRepository, StubPropagationCredentialsRepository)
with build_flask_client(container) as flask_client:
yield flask_client