1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 16:24:18 +00:00

Minor fixes in LoadTestCase in test_downloader_handlers

* same __init__ parameters in both download handlers's mocks
 * additional assertion in test_disabled_handler
This commit is contained in:
Julia Medina 2014-03-13 01:29:10 -03:00
parent b9e2aad874
commit 2177d4feec

View File

@ -33,7 +33,7 @@ from scrapy.exceptions import NotConfigured
class DummyDH(object):
def __init__(self, settings):
def __init__(self, crawler):
pass
@ -61,6 +61,7 @@ class LoadTestCase(unittest.TestCase):
handlers = {'scheme': None}
dh = DownloadHandlers(get_crawler({'DOWNLOAD_HANDLERS': handlers}))
self.assertNotIn('scheme', dh._handlers)
self.assertNotIn('scheme', dh._notconfigured)
class FileTestCase(unittest.TestCase):