Skip to content

Commit

Permalink
test: add ping test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jjungs7 committed Oct 29, 2023
1 parent e086bd9 commit 10f9d27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions poolini/cli/ping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import click


@click.command
def ping() -> None:
click.echo("pong")
10 changes: 10 additions & 0 deletions poolini/tests/cli/test_ping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from click.testing import CliRunner
from ...cli.ping import ping


def test_ping() -> None:
runner = CliRunner()
res = runner.invoke(ping)

assert res.exit_code == 0
assert res.output == "pong\n"

0 comments on commit 10f9d27

Please sign in to comment.