tools: command records - NOTES always bullets, examples held by tests (#142)
Files changed: - CHANGES.md - VERSION - tools/chemenu/cli_contract.py - tools/chemenu/tests/test_cli.py - tools/chemenu/tests/test_cli_contract.py - tools/chemenu/tests/test_docs_verify.py
This commit is contained in:
1 parent
5bfbb49d74
commit
5aae7fed1b
6 files changed
+54
-23
No files matched your search
@@ -52,7 +52,7 @@ def _fixture_record(path: str) -> cli_contract.CommandRecord:
|
||||
atomic="Yes",
|
||||
budget=cli_contract.Budget.COUNTED,
|
||||
),
|
||||
notes="Does a thing, mechanically.",
|
||||
notes=("Does a thing, mechanically.",),
|
||||
failures=(cli_contract.Failure(label="", cause="It broke", reaction="Fix and retry"),),
|
||||
)
|
||||
|
||||
@@ -150,7 +150,7 @@ def test_a_phantom_synopsis_flag_is_reported(monkeypatch):
|
||||
summary="Does a thing.",
|
||||
synopsis=(cli_contract.Variant(usage="frobnicate --flag <v> --invented <v>"),),
|
||||
properties=_fixture_record("frobnicate").properties,
|
||||
notes="Does a thing.",
|
||||
notes=("Does a thing.",),
|
||||
failures=(),
|
||||
)
|
||||
param = click.Option(["--flag"])
|
||||
@@ -188,7 +188,7 @@ def test_a_boolean_flag_pair_is_satisfied_by_either_spelling(monkeypatch):
|
||||
summary="Does a thing.",
|
||||
synopsis=(cli_contract.Variant(usage="frobnicate [--no-push]"),),
|
||||
properties=_fixture_record("frobnicate").properties,
|
||||
notes="Does a thing.",
|
||||
notes=("Does a thing.",),
|
||||
failures=(),
|
||||
)
|
||||
param = click.Option(["--push/--no-push"], default=True)
|
||||
|
||||
Reference in new issue
Block a user