Merge pull request #58 from mrchrisadams/load_yaml_as_well_as_yml

Support loading in Figfiles with .yaml extension
This commit is contained in:
Ben Firshman 2014-01-28 03:35:25 -08:00
commit 8b75f7c7d3
3 changed files with 21 additions and 1 deletions

View file

@ -15,6 +15,13 @@ class CLITestCase(DockerClientTestCase):
self.command.project.kill()
self.command.project.remove_stopped()
def test_yaml_filename_check(self):
self.command.base_dir = 'tests/fixtures/longer-filename-figfile'
project = self.command.project
self.assertTrue( project.get_service('definedinyamlnotyml'), "Service: definedinyamlnotyml should have been loaded from .yaml file" )
def test_help(self):
self.assertRaises(SystemExit, lambda: self.command.dispatch(['-h'], None))

View file

@ -0,0 +1,3 @@
definedinyamlnotyml:
image: ubuntu
command: /bin/sleep 300