- 25 Jan, 2021 1 commit
-
-
Elouan Martinet authored
-
- 11 Jan, 2021 1 commit
-
-
François Ferry authored
-
- 06 Jan, 2021 3 commits
-
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
- 17 Dec, 2020 7 commits
-
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
This option is misleading as one would expect S3Storage to enable deletion by default.
-
Elouan Martinet authored
-
- 06 Oct, 2020 5 commits
-
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
- 09 Dec, 2020 1 commit
-
-
Elouan Martinet authored
-
- 24 Nov, 2020 1 commit
-
-
Laurent Peuch authored
-
- 10 Nov, 2020 1 commit
-
-
Laurent Peuch authored
-
- 19 Aug, 2020 1 commit
-
-
Arthur Lutz authored
-
- 05 Oct, 2020 1 commit
-
-
Nicolas Chauvat authored
-
- 25 Sep, 2020 1 commit
-
-
Laurent Peuch authored
-
- 23 Jun, 2020 2 commits
-
-
Elouan Martinet authored
-
Elouan Martinet authored
-
- 29 Jan, 2020 1 commit
-
-
Arthur Lutz authored
Hooks require uploaded files to be accessible and open
-
- 20 May, 2020 3 commits
-
-
Elouan Martinet authored
-
Elouan Martinet authored
-
Elouan Martinet authored
-
- 12 Feb, 2020 1 commit
-
-
Elouan Martinet authored
-
- 29 Aug, 2019 1 commit
-
-
Arthur Lutz authored
-
- 23 Aug, 2019 1 commit
-
-
Arthur Lutz authored
-
- 19 Sep, 2019 2 commits
-
-
Arthur Lutz authored
-
Arthur Lutz authored
-
- 23 Aug, 2019 2 commits
-
-
Arthur Lutz authored
-
Arthur Lutz authored
-
- 03 Sep, 2018 4 commits
-
-
Denis Laxalde authored
Instead of doing storage attribution in test setup, we implement a test hook (in test/data/hook.py) as would be done in real application. As a consequence, we change the way s3 requests are mocked (using moto). Namely, we introduce a "_s3_client" class method in S3Storage that is mocked in test setup so that mocking operates in the test hook. In migration tests, instead of instantiating a new storage object, we reuse the one bound to Image's data attribute so as to benefit from the active mock.
-
Denis Laxalde authored
We now use an "Image" entity type defined in test/data/schema.py with a "data" bytes attribute along with a "thumbnail" one. The former is used as File's data attribute was. The latter is now used within S3StorageMigrationTC (instead of "data" attribute); this is in preparation of the next changeset in which s3 storage setup will be handled in a test hook (instead of test setup).
-
Denis Laxalde authored
So as to ease testing in downstream projects.
-
Denis Laxalde authored
This seems more appropriate as we're actually not doing any database setup.
-