Skip to content

v0.1.3 - Enhanced Testing

Latest

Choose a tag to compare

@m-marqx m-marqx released this 23 Oct 02:06
· 3 commits to main since this release

🧪 Testing Improvements

  • 100% Code Coverage Requirement: Tests now enforce 100% code coverage with pytest-cov
  • Comprehensive Test Suite Additions:
    • Complete DMI tests (test_DMI.py) with 21 test cases
    • Complete Ichimoku tests (test_ichimoku.py) with 33 test cases
    • Complete utils tests (test_utils.py) covering DynamicTimeWarping and OHLC_finder
    • Extended tests for Bollinger Trends, MACD, SMIO, TRIX, and TSI
    • Added edge case testing for invalid parameters
    • Added tests for different data inputs (DataFrame vs Series)
    • Added tests for different calculation methods (ratio, absolute, DTW)
    • Added tests for various signal methods (SMA, EMA, DEMA, TEMA, RMA)

🔧 Code Quality Improvements

  • Cleaner Code Structure:
    • Removed unreachable else branches in DMI class
    • Removed unreachable case _ pattern in MACD function
    • Simplified OHLC_finder utility function
    • Improved variable naming consistency (e.g., ohlc → hlc where appropriate)

🐛 Bug Fixes & Refactoring

  • Fixed redundant None assignments in DMI initialization
  • Fixed redundant None assignments in OHLC_finder utility
  • Improved column detection logic in DMI and utils

🔄 CI/CD Updates

  • GitHub Actions workflow now includes coverage requirements
  • Tests must achieve 100% code coverage to pass

Full Changelog: v0.1.2.0...v0.1.3