Skip to content

Commit

Permalink
Fix support ffmpeg6.1 (#41)
Browse files Browse the repository at this point in the history
* add 6.1 support

* add load cache test case

* add dependabot
  • Loading branch information
lucemia authored Apr 11, 2024
1 parent dd2ed8b commit 49e647c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
allow:
- dependency-type: "all"
- package-ecosystem: "github-actions"
directory: "/" # Typically GitHub Actions workflows are located in .github/workflows
schedule:
interval: "weekly"
7 changes: 7 additions & 0 deletions src/ffmpeg_media_type/utils/tests/test_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ def test__get_muxer_info(snapshot: SnapshotAssertion) -> None:
assert snapshot == _get_muxer_info("6.0", "E", "mp4", "MP4 (MPEG-4 Part 14)")


def test_load_cache() -> None:
cache_file_6_1 = _cache_file("6.1")
cache_file_6_1_1 = _cache_file("6.1.1")

assert cache_file_6_1 == cache_file_6_1_1


def test_generate_cache() -> None:
cache_file = _cache_file("6.0")
if os.path.exists(cache_file):
Expand Down

0 comments on commit 49e647c

Please sign in to comment.