parent
00a1835fae
commit
892677a9d3
3 changed files with 19 additions and 2 deletions
12
tests/cli_test.py
Normal file
12
tests/cli_test.py
Normal 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
2
tests/fixtures/simple-figfile/fig.yml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
simple:
|
||||
image: ubuntu
|
||||
Loading…
Add table
Add a link
Reference in a new issue