Skip to content

v0.11.4 - Test Fixes and Stability

Choose a tag to compare

@acedrew acedrew released this 02 Nov 18:36
· 5 commits to main since this release

v0.11.4 - Test Fixes and Stability Improvements

This release ensures all tests pass cleanly with no bypassed tests, plus all linting checks pass.

πŸ§ͺ Test Fixes

Unit Test Fixes (117/117 passing βœ…)

  • Fixed Point.get() AttributeError by converting Pydantic models to dicts
  • Fixed HAYSTACK_REF_TAG constant from "haystack_entityRef" to "haystackRef"
  • Added missing method parameters to _prepare_point_create() and _prepare_point_update() test calls
  • Rewrote _build_ref_map() to only include SkySpark points with haystackRef tag
  • Fixed pytest fixture naming errors with proper noqa comments

Integration Test Fixes (9/9 passing βœ…)

  • Fixed fixture parameter formatting to ensure env_config is properly passed
  • All integration tests validated against live services

Linting Fixes βœ…

  • Added noqa comments for all unused fixtures
  • Auto-formatted code with ruff format
  • All ruff checks passing

πŸ“¦ Changes

Core Fixes:

  • src/ace_skyspark_cli/sync.py:
    • Fixed HAYSTACK_REF_TAG constant value
    • Rewrote _build_ref_map logic to filter by haystackRef presence

Test Updates:

  • tests/test_sync.py: Added .model_dump() conversions and fixed method signatures
  • tests/test_*.py: Fixed fixture naming and linting throughout test suite

βœ… Quality Metrics

  • Unit tests: 117/117 passing
  • Integration tests: 9/9 passing
  • Linting: All ruff checks passing
  • Formatting: All files properly formatted
  • Total: 126 tests, all passing with no bypassed tests

πŸ“ Installation

pip install ace-skyspark-cli==0.11.4

Or with uv:

uv pip install ace-skyspark-cli==0.11.4