Skip to content

Commit bc3571b

Browse files
Change split anime test
1 parent 93a3bb1 commit bc3571b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_util.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import pytest
22

33
from anime_downloader import util
4-
4+
from unittest.mock import Mock
55

66
def test_split_anime():
7-
anime_list = list(range(20))
8-
9-
assert len(util.split_anime(anime_list, '1:10')) == 9
7+
anime = Mock()
8+
anime._episode_urls = list(enumerate(range(20)))
9+
assert len(util.split_anime(anime, '1:10')._episode_urls) == 9
1010

1111
def test_check_in_path_exists():
1212
assert util.check_in_path('ls')
1313

1414
def test_check_in_path_not_exists():
15-
assert not util.check_in_path('someAppI_madeUp')
15+
assert not util.check_in_path('someAppI_madeUp')

0 commit comments

Comments
 (0)