Skip to content
Snippets Groups Projects
  1. Apr 09, 2021
  2. Sep 10, 2020
  3. Jul 07, 2020
  4. Jun 30, 2020
  5. Jun 23, 2020
    • David Douard's avatar
      Deprecate the origin_add_one() endpoint · 621fc8d3
      David Douard authored
      This endpoint is not really useful since the origin_add() can be used
      instead.
      
      Using a single API endpoint would also make the API a bit more consistant
      (most other endpoints only provide a xxx_add endpoint) ; having a single
      endpoint per object_type make is enough and make the whole API simpler.
      621fc8d3
  6. Apr 24, 2020
  7. Apr 23, 2020
  8. Jan 31, 2020
  9. Jan 14, 2020
  10. Jan 10, 2020
  11. Nov 21, 2019
  12. Oct 14, 2019
    • David Douard's avatar
      tests: refactor main storage tests · fb70f881
      David Douard authored
      - use pytest instead of unittest.TestCase plumbing
      - extract data from the TestStorageData into a data `storage_data` module;
        this module also provide a simple helper `StorageData` class that mimics
        the original class (access by attributes),
      - implement a series of pytest fixtures for these storage specific tests,
      - get rid of most hypothesis-based tests,
      - replace usage of the use_url hypothesis boolean statetgy by
        pytest.mark.parametrize fixtures; this allows to prevent from
        the need of resetting the storage, since tests are truly executed
        twice (thus with a new swh_storage),
      - refactor test_db to use pytest-postgresql.
      
      Disable (xfail) tests from test_snapshot.py, test_api_client
      and test_in_memory for now.
      
      Fixes/refactorings come with following revisions.
      fb70f881
  13. Oct 01, 2019
Loading