Change split anime test
parent
93a3bb19b2
commit
bc3571b4a5
|
@ -1,15 +1,15 @@
|
|||
import pytest
|
||||
|
||||
from anime_downloader import util
|
||||
|
||||
from unittest.mock import Mock
|
||||
|
||||
def test_split_anime():
|
||||
anime_list = list(range(20))
|
||||
|
||||
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
|
||||
|
||||
def test_check_in_path_exists():
|
||||
assert util.check_in_path('ls')
|
||||
|
||||
def test_check_in_path_not_exists():
|
||||
assert not util.check_in_path('someAppI_madeUp')
|
||||
assert not util.check_in_path('someAppI_madeUp')
|
||||
|
|
Loading…
Reference in New Issue