Allow ignoring modules in tests forever

This commit is contained in:
Tobias Gruetzmacher 2023-08-26 18:23:43 +02:00
parent 4e03ec84c6
commit 6d20de8b2a
No known key found for this signature in database

View file

@ -16,7 +16,8 @@ def get_test_scrapers():
"""Return scrapers that should be tested.""" """Return scrapers that should be tested."""
if 'TESTALL' in os.environ: if 'TESTALL' in os.environ:
# test all comics (this will take some time) # test all comics (this will take some time)
return scrapers.all() # Ignore known-broken (and never-to-be-fixed) modules
scraper_pattern = '^(?!Schuelert)'
elif 'TESTCOMICS' in os.environ: elif 'TESTCOMICS' in os.environ:
scraper_pattern = os.environ['TESTCOMICS'] scraper_pattern = os.environ['TESTCOMICS']
else: else: