mirror of https://github.com/scrapy/scrapy.git
Added Pathlib.Path test
This commit is contained in:
parent
cd09646438
commit
7031e3a124
|
|
@ -850,10 +850,11 @@ class FeedExportTest(unittest.TestCase):
|
|||
def test_pathlib_uri(self):
|
||||
tmpdir = tempfile.mkdtemp()
|
||||
feed_uri = Path(tmpdir) / 'res'
|
||||
res_uri = urljoin('file:', pathname2url(feed_uri))
|
||||
settings = {
|
||||
'FEED_FORMAT': 'csv',
|
||||
'FEED_STORE_EMPTY': True,
|
||||
'FEED_URI': feed_uri,
|
||||
'FEED_URI': res_uri,
|
||||
}
|
||||
|
||||
data = yield self.exported_no_data(settings)
|
||||
|
|
|
|||
Loading…
Reference in New Issue