test: Add tests for environment option setting

This commit is contained in:
Marty Oehme 2025-11-28 22:09:13 +01:00
parent ee8fef930a
commit 97478d62d1
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 30 additions and 7 deletions

View file

@ -1,7 +0,0 @@
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"}