Merge pull request #58 from mrchrisadams/load_yaml_as_well_as_yml
Support loading in Figfiles with .yaml extension
This commit is contained in:
commit
8b75f7c7d3
3 changed files with 21 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
3
tests/fixtures/longer-filename-figfile/fig.yaml
vendored
Normal file
3
tests/fixtures/longer-filename-figfile/fig.yaml
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
definedinyamlnotyml:
|
||||
image: ubuntu
|
||||
command: /bin/sleep 300
|
||||
Loading…
Add table
Add a link
Reference in a new issue