Explorar o código

Testcase for #1224, check that image or build is specified

Signed-off-by: Michael Chase-Salerno <[email protected]>
Michael Chase-Salerno %!s(int64=10) %!d(string=hai) anos
pai
achega
24a6c240fc
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tests/unit/service_test.py

+ 1 - 0
tests/unit/service_test.py

@@ -42,6 +42,7 @@ class ServiceTest(unittest.TestCase):
         Service('foo', image='foo')
 
     def test_project_validation(self):
+        self.assertRaises(ConfigError, lambda: Service('bar'))
         self.assertRaises(ConfigError, lambda: Service(name='foo', project='_', image='foo'))
         Service(name='foo', project='bar', image='foo')