Scrapy, a fast high-level web crawling & scraping framework for Python.
rename key to path in FilesPipelineTestCase
Max Arnold23c50bd9738a
diff --git a/scrapy/tests/test_pipeline_files.py b/scrapy/tests/test_pipeline_files.pyindex 7aa04dfe6..19cd84e69 100644--- a/scrapy/tests/test_pipeline_files.py+++ b/scrapy/tests/test_pipeline_files.py@@ -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.inlineCallbacksdef test_file_not_expired(self):