Skip to content

test: add unit tests for utils.py and cortex_client.py (#210)#211

Merged
jeff-schnitter merged 8 commits into
stagingfrom
210-add-unit-tests-coverage
Jun 9, 2026
Merged

test: add unit tests for utils.py and cortex_client.py (#210)#211
jeff-schnitter merged 8 commits into
stagingfrom
210-add-unit-tests-coverage

Conversation

@jeff-schnitter

Copy link
Copy Markdown
Collaborator

Summary

  • Add tests/test_utils.py (33 tests) covering guess_data_key, get_value_at_path, matches_filters, humanize_value, print_output, and print_output_with_context
  • Add tests/test_cortex_client.py (16 tests) covering error handling, version fallback, response fallbacks, fetch edge cases, and entity helper methods

Coverage impact:

  • utils.py: 62% → 99%
  • cortex_client.py: 74% → 97%
  • Overall: 84% → 86%

Closes #210

Test plan

  • poetry run pytest tests/test_utils.py -v — 33 passed
  • poetry run pytest tests/test_cortex_client.py -v — 16 passed
  • just test-all — 623 passed, 0 failed

🤖 Generated with Claude Code

jeff-schnitter and others added 7 commits June 1, 2026 16:24
Release 1.18.0: Python 3.14 support, dependency security fixes
Also add workflow_dispatch to allow manual publish triggers.
Includes trivial __init__.py touch to trigger publish for 1.18.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…events

PEP 649 deferred annotation evaluation causes `list[str]` to resolve
to the `def list()` function instead of the builtin. Use typing.List
and typing.Optional instead. Also add typing_extensions as explicit
dependency (no longer pulled in transitively by newer Typer).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeff-schnitter jeff-schnitter requested a review from Cantaley as a code owner June 9, 2026 21:26
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeff-schnitter jeff-schnitter merged commit 3e88f52 into staging Jun 9, 2026
3 checks passed
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.

2 participants