Fixed testing error handling by up
Signed-off-by: Ilya Skriblovsky <IlyaSkriblovsky@gmail.com>
This commit is contained in:
parent
f933381a12
commit
5df774bd10
1 changed files with 1 additions and 3 deletions
|
|
@ -5,7 +5,6 @@ import random
|
||||||
|
|
||||||
import py
|
import py
|
||||||
import pytest
|
import pytest
|
||||||
from docker.errors import APIError
|
|
||||||
from docker.errors import NotFound
|
from docker.errors import NotFound
|
||||||
|
|
||||||
from ..helpers import build_config
|
from ..helpers import build_config
|
||||||
|
|
@ -738,8 +737,7 @@ class ProjectTest(DockerClientTestCase):
|
||||||
config_data=config_data,
|
config_data=config_data,
|
||||||
)
|
)
|
||||||
|
|
||||||
with self.assertRaises(APIError):
|
assert len(project.up()) == 0
|
||||||
project.up()
|
|
||||||
|
|
||||||
@v2_only()
|
@v2_only()
|
||||||
def test_project_up_volumes(self):
|
def test_project_up_volumes(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue