From 49e647c0a9bc94f8a8680889f835c5ce8cf3bc81 Mon Sep 17 00:00:00 2001 From: David Chen Date: Thu, 11 Apr 2024 16:22:30 +0800 Subject: [PATCH] Fix support ffmpeg6.1 (#41) * add 6.1 support * add load cache test case * add dependabot --- .github/dependabot.yml | 17 +++++++++++++++++ .../utils/tests/test_ffmpeg.py | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9a71a1b --- /dev/null +++ b/.github/dependabot.yml @@ -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" diff --git a/src/ffmpeg_media_type/utils/tests/test_ffmpeg.py b/src/ffmpeg_media_type/utils/tests/test_ffmpeg.py index 04dabf5..b80d1b6 100644 --- a/src/ffmpeg_media_type/utils/tests/test_ffmpeg.py +++ b/src/ffmpeg_media_type/utils/tests/test_ffmpeg.py @@ -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):