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:
44
44
45
45
- name : Setup Python dependencies
46
46
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
48
48
49
49
- name : Install ffmpeg_downloader package
50
50
run : pip install -q .
51
51
52
+ - name : Install ffmpeg
53
+ run : ffdl install -y
54
+
55
+ - name : Install ffmpeg snapshot
56
+ run : ffdl install -y -U snapshot
57
+
52
58
- name : Run tests
53
59
run : pytest -vv
54
60
61
+ - name : Uninstall ffmpeg
62
+ run : ffdl uninstall -y
63
+
55
64
distribute :
56
65
name : Distribution
57
66
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
- from os import path
2
- from shutil import which
3
1
import ffmpeg_downloader as ffdl
4
2
5
3
6
4
def 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