Skip to content

Commit

Permalink
Fix test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jun 14, 2016
1 parent 9369c68 commit 0f86ef2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# from contextlib import contextmanager
from click.testing import CliRunner

from manage import cli
from manage.cli import cli


class TestManage(object):
Expand All @@ -27,12 +27,12 @@ def test_something(self):

def test_command_line_interface(self):
runner = CliRunner()
result = runner.invoke(cli.main)
result = runner.invoke(cli, ['--help'])
assert result.exit_code == 0
assert 'shell' in result.output
help_result = runner.invoke(cli.main, ['--help'])
help_result = runner.invoke(cli, ['--help'])
assert help_result.exit_code == 0
assert '--help Show this message and exit.' in help_result.output
assert 'Show this message and exit.' in help_result.output

@classmethod
def teardown_class(cls):
Expand Down

0 comments on commit 0f86ef2

Please sign in to comment.