Remove service.start_container()
It has been an unnecessary wrapper around container.start() for a little while now, so we can call it directly. Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
19a41997c2
commit
3d9e3d0877
5 changed files with 22 additions and 26 deletions
|
|
@ -13,7 +13,7 @@ class ResilienceTest(DockerClientTestCase):
|
|||
self.project = Project('composetest', [self.db], self.client)
|
||||
|
||||
container = self.db.create_container()
|
||||
self.db.start_container(container)
|
||||
container.start()
|
||||
self.host_path = container.get('Volumes')['/var/db']
|
||||
|
||||
def test_successful_recreate(self):
|
||||
|
|
@ -31,7 +31,7 @@ class ResilienceTest(DockerClientTestCase):
|
|||
self.assertEqual(container.get('Volumes')['/var/db'], self.host_path)
|
||||
|
||||
def test_start_failure(self):
|
||||
with mock.patch('compose.service.Service.start_container', crash):
|
||||
with mock.patch('compose.container.Container.start', crash):
|
||||
with self.assertRaises(Crash):
|
||||
self.project.up(strategy=ConvergenceStrategy.always)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue