File tree Expand file tree Collapse file tree 2 files changed +12
-23
lines changed
Expand file tree Collapse file tree 2 files changed +12
-23
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,23 @@ jobs:
4444
4545 - name : Setup Python dependencies
4646 run : |
47- python -m pip install -U pip pytest pytest-github-actions-annotate-failures
47+ python -m pip install -U pip setuptools pytest pytest-github-actions-annotate-failures
4848
4949 - name : Install ffmpeg_downloader package
5050 run : pip install -q .
5151
52+ - name : Install ffmpeg
53+ run : ffdl install -y
54+
55+ - name : Install ffmpeg snapshot
56+ run : ffdl install -y -U snapshot
57+
5258 - name : Run tests
5359 run : pytest -vv
5460
61+ - name : Uninstall ffmpeg
62+ run : ffdl uninstall -y
63+
5564 distribute :
5665 name : Distribution
5766 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1- from os import path
2- from shutil import which
31import ffmpeg_downloader as ffdl
42
53
64def test ():
7- def test_update ():
8- ffdl .update (skip_disclaimer = True )
9- assert ffdl .has_update () is False
10- assert which (ffdl .ffmpeg_path ) is not None
11- assert which (ffdl .ffprobe_path ) is not None
12- assert ffdl .ffmpeg_version is not None
13-
14- def test_remove ():
15- ffdl .remove ()
16- assert ffdl .ffmpeg_path is None
17- assert ffdl .ffprobe_path is None
18- assert ffdl .ffmpeg_version is None
19- assert ffdl .has_update ()
20-
21- if ffdl .ffmpeg_path is None :
22- test_update ()
23- test_remove ()
24- else :
25- test_remove ()
26- test_update ()
5+ assert ffdl .installed ('ffmpeg' )
6+ assert ffdl .installed ('ffprobe' )
You can’t perform that action at this time.
0 commit comments