We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93a3bb1 commit bc3571bCopy full SHA for bc3571b
tests/test_util.py
@@ -1,15 +1,15 @@
1
import pytest
2
3
from anime_downloader import util
4
-
+from unittest.mock import Mock
5
6
def test_split_anime():
7
- anime_list = list(range(20))
8
9
- assert len(util.split_anime(anime_list, '1:10')) == 9
+ anime = Mock()
+ anime._episode_urls = list(enumerate(range(20)))
+ assert len(util.split_anime(anime, '1:10')._episode_urls) == 9
10
11
def test_check_in_path_exists():
12
assert util.check_in_path('ls')
13
14
def test_check_in_path_not_exists():
15
- assert not util.check_in_path('someAppI_madeUp')
+ assert not util.check_in_path('someAppI_madeUp')
0 commit comments