import pytest from anime_downloader.sites.anistream import Anistream from test_sites.site import configure_httpretty @pytest.fixture def anime(): return Anistream( 'https://ww5.anistream.xyz/animes/1146-shingeki-no-kyojin') configure_httpretty('anistream') def test_search(): ret = Anistream.search('shingeki%20no%20kyojin') assert len(ret) == 9 assert ret[0].title == 'Shingeki no Kyojin' def test_title(anime): assert anime.title == 'Shingeki no Kyojin' def test_length(anime): assert len(anime) == 36 def test_streamurl(anime): assert anime[0].source(
import pytest from anime_downloader.sites.animefreak import AnimeFreak from test_sites.site import configure_httpretty @pytest.fixture def anime(): return AnimeFreak('https://www.animefreak.tv/watch/shingeki-no-kyojin') configure_httpretty('animefreak') def test_search(): ret = AnimeFreak.search('shingeki no kyojin') assert len(ret) == 24 assert ret[2].title == 'Shingeki no Kyojin' def test_title(anime): assert anime.title == 'Shingeki no Kyojin' def test_length(anime): assert len(anime) == 28 def test_streamurl(anime): assert anime[0].source( ).stream_url == 'http://st7.anime1.com/Attack on Titan s1e01_af.mp4?st=orn45gwkj2zr9NbHogG_YA&e=1569695560'
import pytest from anime_downloader.sites.animeflv import Animeflv from test_sites.site import configure_httpretty @pytest.fixture def anime(): return Animeflv( 'https://animeflv.net/anime/5438/shingeki-no-kyojin-kuinaki-sentaku') configure_httpretty('animeflv') def test_search(): ret = Animeflv.search('shingeki no kyojin') assert len(ret) == 11 assert ret[0].title == 'Shingeki no Kyojin: Kuinaki Sentaku' def test_title(anime): assert anime.title == 'Shingeki no Kyojin: Kuinaki Sentaku' def test_length(anime): assert len(anime) == 2 def test_streamurl(anime): assert anime[0].source(
import pytest from anime_downloader.sites.twistmoe import TwistMoe from test_sites.site import configure_httpretty @pytest.fixture def anime(): return TwistMoe('https://twist.moe/a/shingeki-no-kyojin/first') configure_httpretty('twistmoe') def test_search(): ret = TwistMoe.search('shingeki no kyojin') assert len(ret) == 5 assert ret[0].title == 'Shingeki no Kyojin' def test_title(anime): assert anime.title == 'shingeki-no-kyojin' def test_length(anime): assert len(anime) == 25 def test_streamurl(anime): assert anime[0].source( ).stream_url == 'https://twist.moe/anime/attackontitan/[Coalgirls]_Shingeki_no_Kyojin_01_(1920x1080_Blu-ray_FLAC)_[AEF12794].mp4'
import pytest from anime_downloader.sites.kissanime import KissAnime from test_sites.site import configure_httpretty @pytest.fixture def anime(): return KissAnime('https://kissanime.ru/Anime/Shingeki-no-Kyojin-Dub') configure_httpretty('kissanime') def test_search(): ret = KissAnime.search('shingeki no kyojin') assert len(ret) == 16 assert ret[0].title == 'Attack on Titan (Dub)' def test_title(anime): assert anime.title == 'Attack on Titan (Dub)' def test_length(anime): assert len(anime) == 25 def test_streamurl(anime): assert anime[0].source( ).stream_url == 'https://www432.playercdn.net/86/3/cf1DxUks9XeqNYTLfcQuxg/1569697960/170505/5041aQOsvZ7ekRm.mp4'
import pytest from anime_downloader.sites.animesimple import AnimeSimple from test_sites.site import configure_httpretty @pytest.fixture def anime(): return AnimeSimple( 'https://animesimple.com/series/1146-attack-on-titan-anime.html') configure_httpretty('animesimple') """ def test_search(): ret = AnimeSimple.search('shingeki no kyojin') assert len(ret) == 10 assert ret[0].title == 'Attack on Titan' """ def test_title(anime): assert anime.title == 'Attack on Titan' def test_length(anime): assert len(anime) == 36 # TODO: Test not working on travis. investigate # def test_streamurl(anime):
import pytest from anime_downloader.sites.itsaturday import Itsaturday from test_sites.site import configure_httpretty @pytest.fixture def anime(): return Itsaturday( 'http://www.itsaturday.com/Star-Wars-The-Clone-Wars-2008---2015-Full-Episodes' ) configure_httpretty('itsaturday') def test_search(): ret = Itsaturday.search('star wars') assert len(ret) == 16 assert ret[0].title == 'Star Wars: The Clone Wars (2008 - 2015)' def test_title(anime): assert anime.title == 'Star Wars: The Clone Wars ' def test_length(anime): assert len(anime) == 115 def test_streamurl(anime):