Skip to content

Release v1.4.2

Choose a tag to compare

@github-actions github-actions released this 09 Nov 23:19
· 1 commit to main since this release

test: achieve 97.24% coverage with comprehensive test suite

Add 68 new tests across 7 test files to increase coverage from 68.20% to 97.24%.

New test files:

  • test_api_response_storage.py: File I/O, path generation, gzip, metadata (15 tests)
  • test_endpoint_method_introspection.py: Schema introspection, parameters, docs (11 tests)
  • test_registry_errors.py: Registry error handling and caching (5 tests)
  • test_http_retry.py: HTTP retry logic, backoff, error handling (7 tests)
  • test_edge_cases.py: Property accessors, validation, enum handling (17 tests)
  • test_final_coverage.py: Parent dirs, repr, case-insensitive enums (6 tests)
  • test_complete_coverage.py: Wrappers, formatters, factory functions (7 tests)

Coverage achievements:

  • 100% coverage: registry.py, log.py, schema_loader.py, all init.py
  • 96.51% coverage: factory.py (only defensive code paths uncovered)
  • Overall: 97.24% (505 statements, 98 passing tests)

Remaining 2.76% uncovered consists of defensive code paths that cannot
be triggered without breaking the API contract.