From bc3571b4a54b2bc1c7005687b5a57a6197411301 Mon Sep 17 00:00:00 2001 From: AbdullahM0hamed <25087116+AbdullahM0hamed@users.noreply.github.com> Date: Thu, 17 Dec 2020 20:48:18 +0000 Subject: [PATCH] Change split anime test --- tests/test_util.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 36846fd..6a6629b 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -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') \ No newline at end of file + assert not util.check_in_path('someAppI_madeUp')