Skip to content

Commit dbf7eec

Browse files
committed
YTPMV
1 parent 65b9636 commit dbf7eec

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

tests/createdb/test_tube_add.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,9 @@
1111
pytest.skip(reason="This helps protect our community", allow_module_level=True)
1212

1313

14-
@mock.patch("library.playback.media_player.single_player", return_value=SimpleNamespace(returncode=0))
15-
def test_lb_fs(play_mocked):
16-
lb(["wt", tube_db])
17-
out = play_mocked.call_args[0][1]
18-
assert "https://www.youtube.com/watch?v=QoXubRvB6tQ" in out["path"]
19-
assert out["duration"] == 28
20-
assert out["title"] == "Most Epic Video About Nothing"
21-
assert out["size"] > 2000000
22-
23-
2414
@mock.patch("library.playback.media_player.single_player", return_value=SimpleNamespace(returncode=0))
2515
def test_tw_search(play_mocked):
26-
lb(["wt", tube_db, "-s", "nothing"])
16+
lb(["wt", tube_db, "-s", "MUST TURN"])
2717
out = play_mocked.call_args[0][1]
2818
assert out is not None
2919

tests/mediadb/test_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from library.utils import consts
88
from tests.utils import connect_db_args
99

10-
URL = "https://www.youtube.com/watch?v=BaW_jenozKc"
10+
URL = "https://www.youtube.com/watch?v=5DqJwmzG6Fk"
1111
STORAGE_PREFIX = "tests/data/"
1212

1313
dl_db = "tests/data/dl.db"

tests/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ def get_default_args(*funcs):
8282
"--extra",
8383
"--extractor-config",
8484
"TEST1=1 TEST2=2",
85-
"https://youtube.com/playlist?list=PLVoczRgDnXDLWV1UJ_tO70VT_ON0tuEdm",
85+
"https://vimeo.com/hunteratkins",
8686
]
8787
)

0 commit comments

Comments
 (0)