From 1519b533a41c14eab29822b12fe1aea401203fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Rubinstein?= Date: Sun, 4 Sep 2011 01:50:21 +0200 Subject: [PATCH] add tests for generic comic readers --- weboob/backends/eatmanga/test.py | 25 +++++++++++++++++++++++++ weboob/backends/mangafox/test.py | 25 +++++++++++++++++++++++++ weboob/backends/mangahere/test.py | 25 +++++++++++++++++++++++++ weboob/backends/mangareader/test.py | 25 +++++++++++++++++++++++++ weboob/backends/mangatoshokan/test.py | 25 +++++++++++++++++++++++++ weboob/backends/simplyreadit/test.py | 25 +++++++++++++++++++++++++ 6 files changed, 150 insertions(+) create mode 100644 weboob/backends/eatmanga/test.py create mode 100644 weboob/backends/mangafox/test.py create mode 100644 weboob/backends/mangahere/test.py create mode 100644 weboob/backends/mangareader/test.py create mode 100644 weboob/backends/mangatoshokan/test.py create mode 100644 weboob/backends/simplyreadit/test.py diff --git a/weboob/backends/eatmanga/test.py b/weboob/backends/eatmanga/test.py new file mode 100644 index 00000000..20acc3c3 --- /dev/null +++ b/weboob/backends/eatmanga/test.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# Copyright(C) 2011 Noé Rubinstein +# +# This file is part of weboob. +# +# weboob is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# weboob is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with weboob. If not, see . + +from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest + +class EatmangaTest(GenericComicReaderTest): + BACKEND = 'eatmanga' + DOWNLOAD_ID = 'Glass-Mask/Glass-Mask-Vol-031' + diff --git a/weboob/backends/mangafox/test.py b/weboob/backends/mangafox/test.py new file mode 100644 index 00000000..a30a9a60 --- /dev/null +++ b/weboob/backends/mangafox/test.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# Copyright(C) 2011 Noé Rubinstein +# +# This file is part of weboob. +# +# weboob is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# weboob is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with weboob. If not, see . + + +from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest + +class MangafoxTest(GenericComicReaderTest): + BACKEND = 'mangafox' + DOWNLOAD_ID = 'glass_no_kamen/v02/c000' diff --git a/weboob/backends/mangahere/test.py b/weboob/backends/mangahere/test.py new file mode 100644 index 00000000..cfec6b88 --- /dev/null +++ b/weboob/backends/mangahere/test.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# Copyright(C) 2011 Noé Rubinstein +# +# This file is part of weboob. +# +# weboob is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# weboob is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with weboob. If not, see . + +from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest + +class MangahereTest(GenericComicReaderTest): + BACKEND = 'mangahere' + DOWNLOAD_ID = 'glass_no_kamen/v02/c000' + diff --git a/weboob/backends/mangareader/test.py b/weboob/backends/mangareader/test.py new file mode 100644 index 00000000..4b8bf475 --- /dev/null +++ b/weboob/backends/mangareader/test.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# Copyright(C) 2011 Noé Rubinstein +# +# This file is part of weboob. +# +# weboob is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# weboob is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with weboob. If not, see . + +from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest + +class MangareaderTest(GenericComicReaderTest): + BACKEND = 'mangareader' + DOWNLOAD_ID = 'glass-mask/3' + diff --git a/weboob/backends/mangatoshokan/test.py b/weboob/backends/mangatoshokan/test.py new file mode 100644 index 00000000..6a357127 --- /dev/null +++ b/weboob/backends/mangatoshokan/test.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# Copyright(C) 2011 Noé Rubinstein +# +# This file is part of weboob. +# +# weboob is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# weboob is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with weboob. If not, see . + +from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest + +class MangatoshokanTest(GenericComicReaderTest): + BACKEND = 'mangatoshokan' + DOWNLOAD_ID = 'Okujyouhime/Extras/5' + diff --git a/weboob/backends/simplyreadit/test.py b/weboob/backends/simplyreadit/test.py new file mode 100644 index 00000000..fbe06812 --- /dev/null +++ b/weboob/backends/simplyreadit/test.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# Copyright(C) 2011 Noé Rubinstein +# +# This file is part of weboob. +# +# weboob is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# weboob is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with weboob. If not, see . + +from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest + +class SimplyreaditTest(GenericComicReaderTest): + BACKEND = 'simplyreadit' + DOWNLOAD_ID = 'bonnouji/en/1/3' +