Skip to content

Add unit tests for previously uncovered modules#31

Merged
jamesabel merged 1 commit intomainfrom
add-unit-tests
Feb 20, 2026
Merged

Add unit tests for previously uncovered modules#31
jamesabel merged 1 commit intomainfrom
add-unit-tests

Conversation

@jamesabel
Copy link
Owner

Summary

  • Adds 102 unit tests across 9 new test_b_ files
  • Covers modules that had zero or minimal test coverage: NullPath, exception classes, is_ci(), log_process_output(), hash functions, metadata store/load, subprocess_run, get_app_info_py_project(), download utilities, and get_icon()
  • All 128 tests (new + existing) pass

Test plan

  • test_b_path_exceptions.pyNullPath, all 6 exception classes
  • test_b_ci.pyis_ci() with all env var combinations
  • test_b_logging.pylog_process_output() parsing, filtering, callbacks
  • test_b_hash.py — MD5/SHA-256/SHA-512 for strings and files, known values
  • test_b_metadata.pystore_metadata/load_metadata roundtrip, edge cases
  • test_b_subprocess.pysubprocess_run return codes, stdout/stderr capture
  • test_b_app_info_pyproject.py — PEP 621, flit legacy, [tool.pyship] section, deepcopy isolation
  • test_b_download.pyis_within_directory, safe_extract, extract (zip/tgz/gz)
  • test_b_get_icon.py — icon priority/fallback logic, ui_print callback

🤖 Generated with Claude Code

Adds 102 unit tests across 9 new test_b_ files covering: NullPath,
all exception classes, is_ci(), log_process_output(), string/file hash
functions, metadata store/load, subprocess_run, get_app_info_py_project
(PEP 621 + flit legacy), download utilities, and get_icon priority logic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jamesabel jamesabel merged commit d7df9cd into main Feb 20, 2026
2 of 5 checks passed
@jamesabel jamesabel deleted the add-unit-tests branch February 20, 2026 07:16
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