04d21c61fa
test: Add simple happypath annotation adding
website / build (push) Has been cancelled
website / deploy (push) Has been cancelled
2025-11-29 21:11:32 +01:00
28c551e157
ref: Print optional error message on editor process error
...
Editor function takes an optional io object which is used to print an
error output if the subprocess errors.
2025-11-29 21:11:31 +01:00
762b4a288f
fix: Correct whitespace separation on editor shell call
...
Switch to using 'sequence'-delineated arguments given to the subprocess
run call to correctly handle whitespace.
Also check the output, so we exit if we have an error.
Test accordingly.
2025-11-29 21:11:31 +01:00
3f10b429a2
ref: Rename path expansion function
...
From `_real_path` to `_expand_path` to better express its use.
2025-11-29 21:11:30 +01:00
49bd1292fa
ref: Extract note parent dir creation function
2025-11-29 21:11:30 +01:00
1ea149c1de
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.
2025-11-29 21:10:12 +01:00
e50fc9444a
test: Restructure test files
...
Extract the individual parsing tests (cli, env, rc) and add additional
configuration test file (TConf and config builder).
To extract the fixtures they have to go into an additional 'conftest.py'
file for pytest to recognize and automatically import them, see:
https://docs.pytest.org/en/stable/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files
and:
https://docs.pytest.org/en/stable/how-to/fixtures.html#using-fixtures-from-other-projects
2025-11-29 21:10:09 +01:00