Very basic CLI smoke test

See #8.
This commit is contained in:
Aanand Prasad 2014-01-09 15:30:36 +00:00
commit 892677a9d3
3 changed files with 19 additions and 2 deletions

12
tests/cli_test.py Normal file
View file

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from __future__ import absolute_import
from . import unittest
from fig.cli.main import TopLevelCommand
class CLITestCase(unittest.TestCase):
def setUp(self):
self.command = TopLevelCommand()
self.command.base_dir = 'tests/fixtures/simple-figfile'
def test_help(self):
self.assertRaises(SystemExit, lambda: self.command.dispatch(['-h'], None))

2
tests/fixtures/simple-figfile/fig.yml vendored Normal file
View file

@ -0,0 +1,2 @@
simple:
image: ubuntu