1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `taurus_pyqtgraph` package."""
from click.testing import CliRunner
def test_smoke():
import taurus_pyqtgraph # noqa
def test_command_line_interface():
"""Test the CLI."""
from taurus_pyqtgraph import cli
runner = CliRunner()
result = runner.invoke(cli.tpg)
assert result.exit_code == 0
assert (
'[DEPRECATED] use "taurus plot" or "taurus trend" instead'
in result.output
)
help_result = runner.invoke(cli.tpg, ["--help"])
assert help_result.exit_code == 0
assert "Show this message and exit." in help_result.output
|