mirror of https://github.com/scrapy/scrapy.git
test_downloadermiddleware_uriuserinfo: restore needed instance variable
This commit is contained in:
parent
0a41ed2cea
commit
9e6dd16ca3
|
|
@ -2,6 +2,7 @@ import unittest
|
|||
|
||||
from scrapy.http import Request
|
||||
from scrapy.downloadermiddlewares.uriuserinfo import UriUserinfoMiddleware
|
||||
from scrapy.spiders import Spider
|
||||
|
||||
|
||||
class BaseTestCase:
|
||||
|
|
@ -10,6 +11,7 @@ class BaseTestCase:
|
|||
|
||||
def setUp(self):
|
||||
self.mw = UriUserinfoMiddleware()
|
||||
self.spider = Spider('bar')
|
||||
|
||||
def tearDown(self):
|
||||
del self.mw
|
||||
|
|
|
|||
Loading…
Reference in New Issue