Skip to content

Refactor Command Generation Pipeline and Improve Testing Suite - #89

Merged
GitBib merged 8 commits into
masterfrom
refactor/modular-command-generators
Jan 2, 2026
Merged

Refactor Command Generation Pipeline and Improve Testing Suite#89
GitBib merged 8 commits into
masterfrom
refactor/modular-command-generators

Conversation

@GitBib

@GitBib GitBib commented Jan 1, 2026

Copy link
Copy Markdown
Owner

This PR introduces a major refactor to the pymkv library, transitioning from a monolithic command generation approach to a modular, class-based pipeline. It also enhances the testing infrastructure and adds new functionality for progress tracking.

- Implement modular command generators in `pymkv/command_generators/` to replace monolithic logic in MKVFile.
- Add progress tracking support to `MKVFile.mux()` with callback integration.
- Refactor unit tests into granular files under `tests/command_generators/` using shared mocks in `conftest.py`.
- Update `MKVTrack` attributes to remove legacy `flag_` prefixes for cleaner API usage.
- Standardize docstrings in `models.py` to match project style.
- Optimize import structure to resolve circular dependency risks.
@codecov

codecov Bot commented Jan 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.98113% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.95%. Comparing base (5c10717) to head (5491189).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
pymkv/MKVFile.py 94.64% 3 Missing ⚠️
pymkv/command_generators/track_options.py 95.08% 3 Missing ⚠️
pymkv/Verifications.py 81.81% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #89       +/-   ##
===========================================
+ Coverage   67.25%   82.95%   +15.69%     
===========================================
  Files          10       20       +10     
  Lines         959     1091      +132     
===========================================
+ Hits          645      905      +260     
+ Misses        314      186      -128     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@GitBib
GitBib merged commit 3f5407c into master Jan 2, 2026
21 checks passed
@GitBib
GitBib deleted the refactor/modular-command-generators branch January 2, 2026 01:09
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