Skip to content

Commit

Permalink
fix: import
Browse files Browse the repository at this point in the history
  • Loading branch information
SteinRobert committed Jun 23, 2023
1 parent e363f1b commit 89e040f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/tests/unit/test_create_network.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import pytest
from docker.errors import APIError

from gefyra.configuration import default_configuration
from gefyra.configuration import ClientConfiguration
from gefyra.local.networking import get_or_create_gefyra_network


def test_cycle_gefyra_network():
config = default_configuration
config = ClientConfiguration()
gefyra_network = get_or_create_gefyra_network(config)
gefyra_network.remove()

Expand All @@ -19,6 +19,6 @@ def _raise_apierror_for_docker_network_create(*args, **kwargs):
"docker.api.network.NetworkApiMixin.create_network",
_raise_apierror_for_docker_network_create,
)
config = default_configuration
config = ClientConfiguration()
with pytest.raises(APIError):
get_or_create_gefyra_network(config)

0 comments on commit 89e040f

Please sign in to comment.