Skip to content

Commit 0d76da1

Browse files
committed
Run end-to-end tests
1 parent 8d07d34 commit 0d76da1

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

.github/workflows/smoke.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
run: nimble make
4949
- name: Test
5050
run: nimble test
51+
- name: e2e Test
52+
run: pip install . && py tests/test.py
5153

5254
windows:
5355
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ requires = ["setuptools>=77"]
33

44
[project]
55
name = "auto-editor"
6+
version = "29.0.0"
67
description = "Auto-Editor: Effort free video editing!"
78
readme = "README.md"
89
license = "Unlicense"
@@ -17,26 +18,12 @@ keywords = [
1718
"processing", "nonlinear", "automatic", "silence-detect",
1819
"silence-removal", "silence-speedup", "motion-detection",
1920
]
20-
dynamic = ["version"]
21-
22-
[tool.setuptools.packages]
23-
find = {}
24-
25-
[tool.setuptools.dynamic]
26-
version = {attr = "auto_editor.__version__"}
2721

2822
[project.urls]
2923
"Bug Tracker" = "https://github.com/WyattBlue/auto-editor/issues"
3024
"Source Code" = "https://github.com/WyattBlue/auto-editor"
3125
homepage = "https://auto-editor.com"
3226

33-
[project.scripts]
34-
"auto-editor" = "auto_editor.__main__:main"
35-
aedesc = "auto_editor.cmds.desc:main"
36-
aeinfo = "auto_editor.cmds.info:main"
37-
aesubdump = "auto_editor.cmds.subdump:main"
38-
aelevels = "auto_editor.cmds.levels:main"
39-
4027
[tool.mypy]
4128
warn_unused_ignores = true
4229
warn_redundant_casts = true

tests/test.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import argparse
12
import concurrent.futures
23
import hashlib
34
import os
45
import shutil
56
import subprocess
67
import sys
7-
import argparse
88
from collections.abc import Callable
99
from fractions import Fraction
1010
from hashlib import sha256
@@ -13,7 +13,6 @@
1313

1414
import av
1515
from av import AudioStream, VideoStream
16-
1716
from ffwrapper import FileInfo
1817
from log import Log
1918

@@ -332,6 +331,7 @@ def test_premiere_named_export(self) -> None:
332331
self.main(["example.mp4"], ["--export", 'premiere:name="Foo Bar"'])
333332

334333
def test_export_subtitles(self) -> None:
334+
raise SkipTest() # TODO
335335
# cn = fileinfo(self.main(["resources/mov_text.mp4"], [], "movtext_out.mp4"))
336336

337337
# assert len(cn.videos) == 1
@@ -610,9 +610,7 @@ def main():
610610
for name in dir(Runner)
611611
if callable(getattr(Runner, name)) and name not in ["main", "raw", "check"]
612612
}
613-
tests.extend(
614-
[test_methods[name] for name in ["info", "levels", "subdump", "desc"]]
615-
)
613+
tests.extend([test_methods[name] for name in ["info", "levels", "subdump", "desc"]])
616614
tests.extend(
617615
[
618616
getattr(run, name)

0 commit comments

Comments
 (0)