Remove a duplicate test.

This commit is contained in:
Andrey Rakhmatullin 2025-02-02 18:48:26 +05:00
parent 340819eff0
commit df688910e0
1 changed files with 2 additions and 6 deletions

View File

@ -14,7 +14,7 @@ from scrapy.utils.test import get_crawler
class _BaseTest(unittest.TestCase):
storage_class = "scrapy.extensions.httpcache.DbmCacheStorage"
storage_class = "scrapy.extensions.httpcache.FilesystemCacheStorage"
policy_class = "scrapy.extensions.httpcache.RFC2616Policy"
def setUp(self):
@ -161,11 +161,7 @@ class DbmStorageWithCustomDbmModuleTest(DbmStorageTest):
self.assertEqual(storage.dbmodule.__name__, self.dbm_module)
class FilesystemStorageTest(DefaultStorageTest):
storage_class = "scrapy.extensions.httpcache.FilesystemCacheStorage"
class FilesystemStorageGzipTest(FilesystemStorageTest):
class FilesystemStorageGzipTest(DefaultStorageTest):
def _get_settings(self, **new_settings):
new_settings.setdefault("HTTPCACHE_GZIP", True)
return super()._get_settings(**new_settings)