testsAndMisc-archive/python_pkg/articles
Krzysztof kuhy Rudnicki 996617d4a0 test: achieve 100% branch coverage across all python_pkg packages
- Add comprehensive tests for all packages (3572 tests, 100% branch coverage)
- Split oversized test files to stay under 500-line limit
- Add per-file ruff ignores for test-appropriate suppressions
- Fix _cache_decks.py to properly convert JSON lists to tuples
- Add session-scoped conftest fixture for logging handler cleanup (Python 3.14)
- Update ruff pre-commit hook to v0.15.2
- Add codespell ignore words for test data
- Add generated output files to .gitignore
2026-03-21 17:51:36 +01:00
..
data refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
tests test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
tools refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
__init__.py refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
.clang-format refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
.gitignore refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
cppcheck.txt refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
index.html refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
Makefile refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
README.md refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
run_tests.sh refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
run.sh refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
server_c.c refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
sw.js refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00

Mini Articles (<=14KB)

  • Single-file site: index.html with inline CSS & JS
  • Features:
    • List of articles with thumbnails (cards)
    • Read view: thumbnail, title, body (supports inline images/videos)
    • Create view: title, thumbnail picker/drag-drop, rich body via contenteditable
    • Drag/drop or choose images/videos anywhere in the body
    • Local persistence via localStorage (no server required)

How to open

  • Open site/index.html in a browser.

Tests

  • pytest includes a test to enforce the 14KB budget for index.html.