-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e21e127
commit 151dd81
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from glotaran.cli.main import glotaran |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from click.testing import CliRunner | ||
|
||
from glotaran import cli | ||
|
||
|
||
def test_command_line_interface(): | ||
"""Test the CLI.""" | ||
runner = CliRunner() | ||
result = runner.invoke(cli.glotaran) | ||
assert result.exit_code == 0 | ||
help_result = runner.invoke(cli.glotaran, ["--help"]) | ||
assert help_result.exit_code == 0 | ||
assert "Usage: glotaran [OPTIONS] COMMAND [ARGS]..." in help_result.output | ||
plugin_result = runner.invoke(cli.glotaran, ["pluginlist"]) | ||
assert plugin_result.exit_code == 0 | ||
assert "Installed Glotaran Plugins" in plugin_result.output |