Skip to content

Conversation

GitBib
Copy link
Owner

@GitBib GitBib commented Mar 28, 2025

Introduce attachment handling in MKVFile with methods to add, remove, and manipulate attachments. Add corresponding tests for attachment workflows and preservation. Cleanup dependencies and adjust version constraints in related configuration files.

Introduce attachment handling in MKVFile with methods to add, remove, and manipulate attachments. Add corresponding tests for attachment workflows and preservation. Cleanup dependencies and adjust version constraints in related configuration files.
@codecov
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

❌ Patch coverage is 95.65217% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.22%. Comparing base (d223bef) to head (ddc04f7).

Files with missing lines Patch % Lines
pymkv/MKVFile.py 92.95% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #75       +/-   ##
===========================================
+ Coverage   67.01%   78.22%   +11.21%     
===========================================
  Files          10       10               
  Lines         958     1038       +80     
===========================================
+ Hits          642      812      +170     
+ Misses        316      226       -90     

☔ 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 added 4 commits March 29, 2025 04:36
Introduce tests for MKVFile methods including chapter, tag, link, and split operations. Add tests for new MKVAttachment properties: `source_id` and `source_file`. These enhancements improve test coverage and ensure functionality integrity.
Added `from __future__ import annotations` to improve forward compatibility with type hints. This ensures the tests remain compatible with newer Python versions.
The `strict` argument was removed from `zip` calls across multiple functions, ensuring compatibility with Python versions that do not support it. Additionally, redundant comments in test cases were removed for cleaner and more focused code.
Ensure the attach_once property is correctly set and modified. This test covers True, False, and None states to verify proper functionality.
Introduce handling for empty attachment lists when `_info_json` is present, ensuring proper exclusion commands. Simplify and improve test cases for attachment workflows, including preservation and removal scenarios.
…lated tests

- Introduced `file_first_occurrence` to track unique file paths for improved attachment processing.
- Streamlined attachment exclusion logic to ensure accuracy when `_info_json` is present.
- Refined test cases to validate attachment addition, removal, and preservation workflows, including edge cases.
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