1. 17 Dec, 2020 1 commit
  2. 12 Feb, 2020 1 commit
  3. 29 Aug, 2019 1 commit
  4. 23 Aug, 2019 1 commit
  5. 19 Sep, 2019 2 commits
  6. 23 Aug, 2019 2 commits
  7. 03 Sep, 2018 5 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
    • Denis Laxalde's avatar
      [doc] Remove tabs in README · 3d977a93a55f
      Denis Laxalde authored
      3d977a93a55f
  8. 04 Sep, 2018 1 commit
  9. 31 Aug, 2018 1 commit
  10. 03 Sep, 2018 1 commit
    • Denis Laxalde's avatar
      [tests] Use boto3.resource() API in tests · 45a37a0da643
      Denis Laxalde authored
      This is the API I'm used to and it makes some operations simpler.
      
      Also notice that we now use a fake region name ("somewhere"), this
      should at least avoid doing real requests whereas using "eu-west-1"
      might have side effects if the user has boto credentials and moto's
      mocks fail.
      45a37a0da643
  11. 28 Aug, 2018 1 commit
  12. 10 Jul, 2018 1 commit
  13. 20 Jun, 2018 9 commits
  14. 12 Jun, 2018 1 commit