Skip to content
Snippets Groups Projects
Commit 9ce9c310 authored by Piotr Zieliński's avatar Piotr Zieliński
Browse files

poprawka w split

parent 242ce766
Branches
Tags
1 merge request!6Feature #103839 brak pullowania obrazow
Pipeline #41683 passed
......@@ -19,10 +19,10 @@ from pytest_docker_integration.config import (
@pytest.mark.docker_integration("redis")
def test_pulling():
calls_list = [
unittest.mock.call(*POSTGRES_CONFIG["image"].split(":")),
unittest.mock.call(*KEYCLOAK_CONFIG["image"].split(":")),
unittest.mock.call(*RABBITMQ_CONFIG["image"].split(":")),
unittest.mock.call(*REDIS_CONFIG["image"].split(":")),
unittest.mock.call(*POSTGRES_CONFIG["image"].rsplit(":", 1)),
unittest.mock.call(*KEYCLOAK_CONFIG["image"].rsplit(":", 1)),
unittest.mock.call(*RABBITMQ_CONFIG["image"].rsplit(":", 1)),
unittest.mock.call(*REDIS_CONFIG["image"].rsplit(":", 1)),
]
assert len(docker_client.images.pull.mock_calls) == len(calls_list)
for mock_call in docker_client.images.pull.mock_calls:
......
......@@ -17,8 +17,8 @@ from pytest_docker_integration.config import (
@pytest.mark.docker_integration("redis")
def test_pulling():
calls_list = [
unittest.mock.call(*POSTGRES_CONFIG["image"].split(":")),
unittest.mock.call(*REDIS_CONFIG["image"].split(":")),
unittest.mock.call(*POSTGRES_CONFIG["image"].rsplit(":", 1)),
unittest.mock.call(*REDIS_CONFIG["image"].rsplit(":", 1)),
]
assert len(docker_client.images.pull.mock_calls) == len(calls_list)
for mock_call in docker_client.images.pull.mock_calls:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment