Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
2878900a
Kaydet (Commit)
2878900a
authored
Kas 19, 2017
tarafından
Viktor Adam
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixing integration tests
Signed-off-by:
Viktor Adam
<
rycus86@gmail.com
>
üst
7829b728
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
api_network_test.py
tests/integration/api_network_test.py
+4
-0
models_networks_test.py
tests/integration/models_networks_test.py
+1
-1
No files found.
tests/integration/api_network_test.py
Dosyayı görüntüle @
2878900a
...
...
@@ -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'
]]
)
...
...
tests/integration/models_networks_test.py
Dosyayı görüntüle @
2878900a
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment