Skip to content

Commit

Permalink
Updated for CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
SekouD committed Jul 4, 2018
1 parent 4ef77eb commit 2f8fa57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_potranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from click.testing import CliRunner

from potranslator import PoTranslator
from potranslator import cli
from potranslator import cli, commands


is_python2 = sys.version_info < (3, 0)
Expand Down Expand Up @@ -118,9 +118,9 @@ def test_translate_all_pot(self):
def test_command_line_interface():
"""Test the CLI."""
runner = CliRunner()
result = runner.invoke(cli.main)
result = runner.invoke(commands.main)
assert result.exit_code == 0
assert 'potranslator.cli.main' in result.output
help_result = runner.invoke(cli.main, ['--help'])
assert 'POTRANSLATOR_<UPPER_LONG_NAME>' in result.output
help_result = runner.invoke(commands.main, ['--help'])
assert help_result.exit_code == 0
assert '--help Show this message and exit.' in help_result.output
assert 'All command-line options can be set' in help_result.output

0 comments on commit 2f8fa57

Please sign in to comment.