ytdl-sub: enable tests (#418873)

This commit is contained in:
Aleksana
2025-06-22 11:08:23 +08:00
committed by GitHub
+20 -1
View File
@@ -42,9 +42,28 @@ python3Packages.buildPythonApplication rec {
"--set YTDL_SUB_FFPROBE_PATH ${lib.getExe' ffmpeg "ffprobe"}"
];
nativeCheckInputs = [ versionCheckHook ];
nativeCheckInputs = [
versionCheckHook
python3Packages.pytestCheckHook
];
versionCheckProgramArg = "--version";
env = {
YTDL_SUB_FFMPEG_PATH = "${lib.getExe' ffmpeg "ffmpeg"}";
YTDL_SUB_FFPROBE_PATH = "${lib.getExe' ffmpeg "ffprobe"}";
};
disabledTests = [
"test_presets_run"
"test_logger_can_be_cleaned_during_execution"
];
pytestFlagsArray = [
# According to documentation, e2e tests can be flaky:
# "This checksum can be inaccurate for end-to-end tests"
"--ignore=tests/e2e"
];
passthru.updateScript = ./update.sh;
meta = {