Scrapy, a fast high-level web crawling & scraping framework for Python.
applied black to tests
Alexa1e2fbafdcaa
diff --git a/tests/test_pipeline_files.py b/tests/test_pipeline_files.pyindex 76c16e57f..1e00e6d1d 100644--- a/tests/test_pipeline_files.py+++ b/tests/test_pipeline_files.py@@ -484,19 +484,18 @@ class FilesPipelineTestCaseCustomSettings(unittest.TestCase):self.assertEqual(getattr(pipeline_cls, pipe_inst_attr), expected_value)def test_file_pipeline_using_pathlike_objects(self):-class CustomFilesPipelineWithPathLikeDir(FilesPipeline):def file_path(self, request, response=None, info=None, *, item=None):- return Path('subdir') / Path(request.url).name+ return Path("subdir") / Path(request.url).namepipeline = CustomFilesPipelineWithPathLikeDir.from_settings(- Settings({'FILES_STORE': Path('./Temp')})+ Settings({"FILES_STORE": Path("./Temp")}))request = Request("http://example.com/image01.jpg")- self.assertEqual(pipeline.file_path(request), Path('subdir/image01.jpg'))+ self.assertEqual(pipeline.file_path(request), Path("subdir/image01.jpg"))def test_files_store_constructor_with_pathlike_object(self):- path = Path('./FileDir')+ path = Path("./FileDir")fs_store = FSFilesStore(path)self.assertEqual(fs_store.basedir, str(path))