Moto got better at checking permissions in their mock.

Since we want anonymous read of these objects, we have to be explicit about
the bucket permissions or the test will fail.
This commit is contained in:
Feanil Patel
2019-08-02 11:05:54 -04:00
parent dead415d2b
commit 9926fa0fbd

View File

@@ -68,7 +68,7 @@ class TestPaverDatabaseTasks(MockS3Mixin, PaverTestCase):
def setUp(self):
super(TestPaverDatabaseTasks, self).setUp()
conn = boto.connect_s3()
conn.create_bucket('moto_test_bucket')
conn.create_bucket('moto_test_bucket', policy='public-read')
self.bucket = conn.get_bucket('moto_test_bucket')
# This value is the actual sha1 fingerprint calculated for the dummy
# files used in these tests