Skip to content

Commit ffb5791

Browse files
author
Andrei Neagu
committed
fixed tests
1 parent cf81456 commit ffb5791

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

services/director-v2/tests/unit/test_api_routes_docker_networks.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# pylint: disable=redefined-outer-name
22
# pylint: disable=unused-argument
33

4-
from collections.abc import AsyncIterable
5-
64
import pytest
75
from aiodocker import Docker, DockerError
86
from faker import Faker
@@ -39,12 +37,6 @@ def mock_env(
3937
monkeypatch.setenv("S3_BUCKET_NAME", faker.pystr())
4038

4139

42-
@pytest.fixture
43-
async def async_docker_client() -> AsyncIterable[Docker]:
44-
async with Docker() as client:
45-
yield client
46-
47-
4840
@pytest.mark.parametrize(
4941
"network_name, network",
5042
[
@@ -65,7 +57,7 @@ async def async_docker_client() -> AsyncIterable[Docker]:
6557
),
6658
],
6759
)
68-
async def test_routes_are_protected(
60+
async def test_network_creation_workflow(
6961
docker_swarm: None,
7062
client: TestClient,
7163
async_docker_client: Docker,

0 commit comments

Comments
 (0)