Skip to content
Snippets Groups Projects
  1. Feb 26, 2024
    • Fabien Amarger's avatar
      fix: Use mock_aws instead of mock_s3 · 06bd6a68c09d
      Fabien Amarger authored
      The moto@v5 do not implement mock_s3 anymore, it uses mock_aws instead.
      This version is used since we do have a python3.9 project (under it uses a
      moto@v4 in which mock_s3 is still present).
      4.0.1
      06bd6a68c09d
  2. Jun 27, 2023
  3. Dec 09, 2022
  4. Dec 22, 2022
  5. Dec 09, 2020
  6. Sep 03, 2018
    • Denis Laxalde's avatar
      [test] Setup S3Storage in a hook · 34801bb72594
      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.
      34801bb72594
    • Denis Laxalde's avatar
      Add a "testing" module with a mixin class handling s3 setup/teardown · 1f9689d9080d
      Denis Laxalde authored
      So as to ease testing in downstream projects.
      1f9689d9080d
Loading