1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-22 01:13:20 +00:00

TST: Randomize FILES_EXPIRES above 90 days

This commit is contained in:
Paul Tremberth 2016-12-21 17:03:11 +01:00
parent ac74d5a467
commit 07f9985a94

View File

@ -208,7 +208,7 @@ class FilesPipelineTestCaseCustomSettings(unittest.TestCase):
return "".join([chr(random.randint(97, 123)) for _ in range(10)])
settings = {
"FILES_EXPIRES": random.randint(1, 1000),
"FILES_EXPIRES": random.randint(100, 1000),
"FILES_URLS_FIELD": random_string(),
"FILES_RESULT_FIELD": random_string(),
"FILES_STORE": self.tempdir