code cleanup and fixes

This commit is contained in:
Mike Fährmann
2017-07-25 14:59:41 +02:00
parent f08af03845
commit 7aa9fa796a
10 changed files with 43 additions and 34 deletions

View File

@@ -23,6 +23,9 @@ class TestExtractors(unittest.TestCase):
config.set(("extractor", "nijie", "username"), email)
config.set(("extractor", "seiga", "username"), email)
def tearDown(self):
config.clear()
def _run_test(self, extr, url, result):
content = "content" in result if result else False
tjob = job.TestJob(url, content)