Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Use ftp:// URLs in FTP tests.

Andrey Rakhmatullin644a71bfd40b
diff --git a/tests/test_feedexport.py b/tests/test_feedexport.py
index 46bd5733a..42fa25b1d 100644
--- a/tests/test_feedexport.py
+++ b/tests/test_feedexport.py
@@ -2978,8 +2978,8 @@ class FTPFeedStoragePreFeedOptionsTest(unittest.TestCase):
def test_init(self):
settings_dict = {
- "FEED_URI": "file:///tmp/foobar",
- "FEED_STORAGES": {"file": FTPFeedStorageWithoutFeedOptions},
+ "FEED_URI": "ftp://localhost/foo",
+ "FEED_STORAGES": {"ftp": FTPFeedStorageWithoutFeedOptions},
}
with pytest.warns(
ScrapyDeprecationWarning,
@@ -3000,8 +3000,8 @@ class FTPFeedStoragePreFeedOptionsTest(unittest.TestCase):
def test_from_crawler(self):
settings_dict = {
- "FEED_URI": "file:///tmp/foobar",
- "FEED_STORAGES": {"file": FTPFeedStorageWithoutFeedOptionsWithFromCrawler},
+ "FEED_URI": "ftp://localhost/foo",
+ "FEED_STORAGES": {"ftp": FTPFeedStorageWithoutFeedOptionsWithFromCrawler},
}
with pytest.warns(
ScrapyDeprecationWarning,