test: Add simple pytest harness
This commit is contained in:
parent
db11128beb
commit
bd05dadf56
4 changed files with 94 additions and 30 deletions
7
test/test_cli.py
Normal file
7
test/test_cli.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from topen import parse_cli
|
||||
|
||||
|
||||
class TestCli:
|
||||
def test_cli_minimum_id(self, monkeypatch):
|
||||
monkeypatch.setattr("sys.argv", ["topen", "42"])
|
||||
assert parse_cli() == {"task_id": "42"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue