Explorar el Código

Fixed testing error handling by `up`

Signed-off-by: Ilya Skriblovsky <[email protected]>
Ilya Skriblovsky hace 9 años
padre
commit
5df774bd10
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      tests/integration/project_test.py

+ 1 - 3
tests/integration/project_test.py

@@ -5,7 +5,6 @@ import random
 
 import py
 import pytest
-from docker.errors import APIError
 from docker.errors import NotFound
 
 from ..helpers import build_config
@@ -738,8 +737,7 @@ class ProjectTest(DockerClientTestCase):
             config_data=config_data,
         )
 
-        with self.assertRaises(APIError):
-            project.up()
+        assert len(project.up()) == 0
 
     @v2_only()
     def test_project_up_volumes(self):