mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-23 16:24:18 +00:00
rename key to path in FilesPipelineTestCase
This commit is contained in:
parent
d58a4639cd
commit
23c50bd973
@ -48,9 +48,9 @@ class FilesPipelineTestCase(unittest.TestCase):
|
||||
assert isinstance(self.pipeline.store, FSFilesStore)
|
||||
self.assertEqual(self.pipeline.store.basedir, self.tempdir)
|
||||
|
||||
key = 'some/image/key.jpg'
|
||||
path = os.path.join(self.tempdir, 'some', 'image', 'key.jpg')
|
||||
self.assertEqual(self.pipeline.store._get_filesystem_path(key), path)
|
||||
path = 'some/image/key.jpg'
|
||||
fullpath = os.path.join(self.tempdir, 'some', 'image', 'key.jpg')
|
||||
self.assertEqual(self.pipeline.store._get_filesystem_path(path), fullpath)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_file_not_expired(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user