Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Kuhnke <[email protected]>
  • Loading branch information
tkilias and ckunki authored Jan 25, 2024
1 parent 7aef92b commit 1fd5813
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/unit/test_current_container_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ def create_ip_retriever_mock(ip_addresses: List[str]) -> Union[MagicMock, IPRetr
return ip_retriever_mock


from typing import NewType
Network = NewType("Network", Dict[str, str])


def create_docker_client_mock(
containers: List[Dict[str, str]]
containers: List[Network]
) -> Union[docker.DockerClient, MagicMock]:
docker_client_mock: Union[MagicMock, docker.DockerClient] = create_autospec(
docker.DockerClient
Expand Down

0 comments on commit 1fd5813

Please sign in to comment.