Skip to content

Fix OpusTest bitrate expectation for Mutagen >= 1.48 - #115

Open
chiragjangiir wants to merge 1 commit into
beetbox:masterfrom
chiragjangiir:fix/opus-bitrate-mutagen-1.48
Open

chiragjangiir wants to merge 1 commit into
beetbox:masterfrom
chiragjangiir:fix/opus-bitrate-mutagen-1.48

Conversation

@chiragjangiir

Copy link
Copy Markdown

Summary

Fixes #109.

Mutagen 1.48.0 introduced native Opus bitrate calculation. The OpusTest.test_read_audio_properties expectation now accounts for the native bitrate on newer Mutagen versions while preserving the previous fallback expectation for older versions.

Changes

  • Update the Opus bitrate expectation based on mutagen.version.
  • Keep the change limited to the existing test fixture expectations.

Verification

  • Opus tests passed with Mutagen 1.46.0, 1.47.0, and 1.48.1.
  • Full test suite: 488 passed with Mutagen 1.48.1.
  • Ruff lint and format checks passed.

@github-actions

Copy link
Copy Markdown

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

This branch has not been deployed

No deployments
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.

test/test_mediafile.py::OpusTest::test_read_audio_properties fails with mutagen 1.48.1

1 participant