From a6d2e11503374ba3e772e202e46b8888164780c4 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 16 Apr 2022 00:11:01 +0200 Subject: [PATCH] Disable geoblocking test Since we removed the standalone SoloLeveling module, we have no geoblocking comic modules at the moment, so there is no good way to test geoblocking anymore... --- tests/test_modules.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_modules.py b/tests/test_modules.py index 84f11ab58..c6ec1e021 100644 --- a/tests/test_modules.py +++ b/tests/test_modules.py @@ -7,8 +7,6 @@ import responses import dosagelib.cmd import httpmocks -from dosagelib.plugins.s import SoloLeveling -from dosagelib.scraper import GeoblockedException def cmd(*options): @@ -43,7 +41,11 @@ class TestModules(object): cmd('--basepath', str(tmpdir), 'CalvinAndHobbesEnEspanol:2012/07/22') @responses.activate + @pytest.mark.skip(reason="SoloeLeveling was removed, so we have no way to test this...") def test_sololeveling_geoblock(self, tmpdir): + from dosagelib.plugins.s import SoloLeveling + from dosagelib.scraper import GeoblockedException + responses.add(responses.GET, 'https://w3.sololeveling.net/', '1020', status=403)