Skip to content

fix(settings): isolate self-test configuration - #2

Open
lukisch wants to merge 2 commits into
mainfrom
post-hold/t-20260731-24-settings-persistence
Open

fix(settings): isolate self-test configuration#2
lukisch wants to merge 2 commits into
mainfrom
post-hold/t-20260731-24-settings-persistence

Conversation

@lukisch

@lukisch lukisch commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • isolate the complete python main.py --self-test lifecycle in temporary APPDATA
  • preserve the user's real %APPDATA%\CleanMarkdown\settings.json byte-for-byte and mtime-for-mtime
  • cover all 13 settings through save/restart/load and correct JSON storage documentation
  • retain current upstream documentation while reconciling the test inventory to 122

Verification

  • python -m pytest -q -p no:cacheprovider — 122 passed
  • python main.py --self-test — 53 checks, exit 0
  • real settings SHA-256 and mtime unchanged across the self-test
  • python -m py_compile main.py translator.py manage_translations.py
  • python -m ruff check .
  • git diff --check

Ticket: T-20260731-24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant