1. 25 Jan, 2021 1 commit
  2. 11 Jan, 2021 1 commit
  3. 06 Jan, 2021 3 commits
  4. 17 Dec, 2020 7 commits
  5. 06 Oct, 2020 5 commits
  6. 09 Dec, 2020 1 commit
  7. 24 Nov, 2020 1 commit
  8. 10 Nov, 2020 1 commit
  9. 19 Aug, 2020 1 commit
  10. 05 Oct, 2020 1 commit
  11. 25 Sep, 2020 1 commit
  12. 23 Jun, 2020 2 commits
  13. 29 Jan, 2020 1 commit
  14. 20 May, 2020 3 commits
  15. 12 Feb, 2020 1 commit
  16. 29 Aug, 2019 1 commit
  17. 23 Aug, 2019 1 commit
  18. 19 Sep, 2019 2 commits
  19. 23 Aug, 2019 2 commits
  20. 03 Sep, 2018 4 commits
    • 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
      [test] Use a dedicated test schema instead of cubicweb-file · 8382e8632a2a
      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).
      8382e8632a2a
    • 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
    • Denis Laxalde's avatar
      Setup moto's mock in setUp method rather than setup_database · 635090b28a66
      Denis Laxalde authored
      This seems more appropriate as we're actually not doing any database
      setup.
      635090b28a66