mirror of https://github.com/docker/compose.git
Testcase for #1224, check that image or build is specified
Signed-off-by: Michael Chase-Salerno <bratac@linux.vnet.ibm.com>
This commit is contained in:
parent
15b763acdb
commit
24a6c240fc
|
@ -42,6 +42,7 @@ class ServiceTest(unittest.TestCase):
|
||||||
Service('foo', image='foo')
|
Service('foo', image='foo')
|
||||||
|
|
||||||
def test_project_validation(self):
|
def test_project_validation(self):
|
||||||
|
self.assertRaises(ConfigError, lambda: Service('bar'))
|
||||||
self.assertRaises(ConfigError, lambda: Service(name='foo', project='_', image='foo'))
|
self.assertRaises(ConfigError, lambda: Service(name='foo', project='_', image='foo'))
|
||||||
Service(name='foo', project='bar', image='foo')
|
Service(name='foo', project='bar', image='foo')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue