test: Add tests for environment option setting
This commit is contained in:
parent
ee8fef930a
commit
97478d62d1
2 changed files with 30 additions and 7 deletions
|
|
@ -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"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue