-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #590 from AbdullahM0hamed/split-test
Change split anime test
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |