remove obsolete tests
This commit is contained in:
parent
75291d7704
commit
c27b8e20ce
1 changed files with 0 additions and 61 deletions
|
@ -5,10 +5,7 @@ from pytest import raises
|
|||
|
||||
from .forge import (
|
||||
get_files_and_intervals,
|
||||
get_timefile_exact,
|
||||
round_timefile,
|
||||
get_timefile,
|
||||
mp3_join,
|
||||
)
|
||||
from .config_manager import get_config
|
||||
|
||||
|
@ -34,17 +31,8 @@ def seconds(n):
|
|||
return timedelta(seconds=n)
|
||||
|
||||
|
||||
# timefile
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_timefile_exact():
|
||||
eq_(await get_timefile_exact(eight), "2014-05/30/2014-05-30-20-00-00.mp3")
|
||||
|
||||
|
||||
# Rounding
|
||||
|
||||
|
||||
def test_rounding_similarity():
|
||||
eq_(round_timefile(eight), round_timefile(eight + minutes(20)))
|
||||
assert round_timefile(eight) != round_timefile(nine)
|
||||
|
@ -55,19 +43,6 @@ def test_rounding_value():
|
|||
eq_(round_timefile(eight + minutes(20)), eight)
|
||||
|
||||
|
||||
# Rounding + timefile
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_timefile_alreadyround():
|
||||
eq_(await get_timefile(eight), "2014-05/30/2014-05-30-20-00-00.mp3")
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_timefile_toround():
|
||||
eq_(await get_timefile(eight + minutes(20)), "2014-05/30/2014-05-30-20-00-00.mp3")
|
||||
|
||||
|
||||
# Intervals
|
||||
|
||||
|
||||
|
@ -171,39 +146,3 @@ def test_intervals_left_2():
|
|||
eq_(res[1][2], 3599)
|
||||
|
||||
|
||||
# MP3 Join
|
||||
|
||||
|
||||
def test_mp3_1():
|
||||
eq_(" ".join(mp3_join((("a", 0, 0),))), "ffmpeg -i concat:a -acodec copy")
|
||||
|
||||
|
||||
def test_mp3_1_left():
|
||||
eq_(" ".join(mp3_join((("a", 160, 0),))), "ffmpeg -i concat:a -acodec copy -ss 160")
|
||||
|
||||
|
||||
def test_mp3_1_right():
|
||||
eq_(
|
||||
" ".join(mp3_join((("a", 0, 1600),))), "ffmpeg -i concat:a -acodec copy -t 2000"
|
||||
)
|
||||
|
||||
|
||||
def test_mp3_1_leftright():
|
||||
eq_(
|
||||
" ".join(mp3_join((("a", 160, 1600),))),
|
||||
"ffmpeg -i concat:a -acodec copy -ss 160 -t 1840",
|
||||
)
|
||||
|
||||
|
||||
def test_mp3_2():
|
||||
eq_(
|
||||
" ".join(mp3_join((("a", 0, 0), ("b", 0, 0)))),
|
||||
"ffmpeg -i concat:a|b -acodec copy",
|
||||
)
|
||||
|
||||
|
||||
def test_mp3_2_leftright():
|
||||
eq_(
|
||||
" ".join(mp3_join((("a", 1000, 0), ("b", 0, 1600)))),
|
||||
"ffmpeg -i concat:a|b -acodec copy -ss 1000 -t 4600",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue