3501 - Remove a test and fix other

Signed-off-by: Jesus Rodriguez Tinoco <jesus.rodriguez.tinoco@gmail.com>
This commit is contained in:
Jesus Tinoco 2016-06-11 02:10:52 +02:00 committed by Joffrey F
parent 33f510b340
commit 90beeaf21c
1 changed files with 2 additions and 17 deletions

View File

@ -1990,26 +1990,11 @@ class CLITestCase(DockerClientTestCase):
def test_images(self):
self.project.get_service('simple').create_container()
result = self.dispatch(['images'])
assert 'simplecomposefile_simple' in result.stdout
assert 'busybox' in result.stdout
def test_images_default_composefile(self):
self.base_dir = 'tests/fixtures/multiple-composefiles'
self.dispatch(['up', '-d'])
result = self.dispatch(['images'])
self.assertIn('multiplecomposefiles_simple', result.stdout)
self.assertIn('multiplecomposefiles_another', result.stdout)
self.assertNotIn('multiplecomposefiles_yetanother', result.stdout)
def test_images_alternate_composefile(self):
config_path = os.path.abspath(
'tests/fixtures/multiple-composefiles/compose2.yml')
self._project = get_project(self.base_dir, [config_path])
self.base_dir = 'tests/fixtures/multiple-composefiles'
self.dispatch(['-f', 'compose2.yml', 'up', '-d'])
result = self.dispatch(['-f', 'compose2.yml', 'images'])
self.assertNotIn('multiplecomposefiles_simple', result.stdout)
self.assertNotIn('multiplecomposefiles_another', result.stdout)
self.assertIn('multiplecomposefiles_yetanother', result.stdout)
self.assertIn('busybox', result.stdout)