test: Add simple pytest harness

This commit is contained in:
Marty Oehme 2025-11-28 19:23:49 +01:00
parent db11128beb
commit bd05dadf56
Signed by: Marty
GPG key ID: 4E535BC19C61886E
4 changed files with 94 additions and 30 deletions

0
test/__init__.py Normal file
View file

7
test/test_cli.py Normal file
View 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"}