Skip to content

Commit

Permalink
test: add benchmark for cli
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed May 8, 2024
1 parent 5896553 commit 6b90a11
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import subprocess
import sys

import pytest
import reacnetgenerator


Expand All @@ -14,3 +15,11 @@ def test_module_script():
[sys.executable, "-m", "reacnetgenerator", "--version"]
).decode("ascii")
assert output.splitlines()[0] == f"ReacNetGenerator v{expected_version}"


@pytest.mark.benchmark
def test_cli():
"""Test reacnetgenerator command."""
subprocess.check_output(
["reacnetgenerator", "-h"]
).decode("ascii")

0 comments on commit 6b90a11

Please sign in to comment.