fix: Ensure quiet is a flag on the cli
We regressed quiet into requiring a value to be set as a cli option (`--quiet=true`) instead of just functioning as a flag (`--quiet`). This change restores the previous interface on the command line, and adds a test to ensure no regressions.
This commit is contained in:
parent
e50fc9444a
commit
1ea149c1de
2 changed files with 23 additions and 2 deletions
|
|
@ -29,6 +29,17 @@ class TestCli:
|
|||
"notes_annot": "HERENOTE",
|
||||
}
|
||||
|
||||
def test_cli_notes_quiet_is_flag(self, monkeypatch):
|
||||
monkeypatch.setattr(
|
||||
"sys.argv",
|
||||
[
|
||||
"topen",
|
||||
"123",
|
||||
"--quiet",
|
||||
],
|
||||
)
|
||||
assert parse_cli()["notes_quiet"] is True
|
||||
|
||||
def test_cli_parses_paths(self, monkeypatch):
|
||||
monkeypatch.setattr(
|
||||
"sys.argv",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue