Kaydet (Commit) 2878900a authored tarafından Viktor Adam's avatar Viktor Adam

Fixing integration tests

Signed-off-by: 's avatarViktor Adam <rycus86@gmail.com>
üst 7829b728
......@@ -118,6 +118,7 @@ class TestNetworks(BaseAPIIntegrationTest):
key
for net in network_list
for key in net['Containers'].keys()
if net['Id'] == net_id
),
[container['Id']]
)
......@@ -156,6 +157,7 @@ class TestNetworks(BaseAPIIntegrationTest):
key
for net in network_list
for key in net['Containers'].keys()
if net['Id'] == net_id
),
[container['Id']]
)
......@@ -169,6 +171,7 @@ class TestNetworks(BaseAPIIntegrationTest):
key
for net in network_list
for key in net['Containers'].keys()
if net['Id'] == net_id
))
with pytest.raises(docker.errors.APIError):
......@@ -216,6 +219,7 @@ class TestNetworks(BaseAPIIntegrationTest):
key
for net in network_list
for key in net['Containers'].keys()
if net['Id'] == net_id
),
[container['Id']]
)
......
......@@ -61,7 +61,7 @@ class NetworkTest(BaseIntegrationTest):
assert client.networks.get(network.id).containers == [container]
network_containers = list(
c
for net in client.networks.list(greedy=True)
for net in client.networks.list(ids=[network.id], greedy=True)
for c in net.containers
)
assert network_containers == [container]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment