Skip to content
Snippets Groups Projects
  1. Apr 30, 2020
  2. Apr 29, 2020
  3. Apr 24, 2020
  4. Apr 23, 2020
    • Antoine Lambert's avatar
      pytest.ini: Avoid loading flask plugin to prevent fixture name clash · 98d53fed
      Antoine Lambert authored
      pytest-django and pytest-flask both declare a fixture named client and
      the wrong one is picked when running swh-web tests.
      
      So avoid the loading of pytest flask plugin to prevent errors when
      running tests.
      98d53fed
    • Antoine Lambert's avatar
      browse: Disambiguate URLs related to origin / snapshot context browsing · 6945c4ef
      Antoine Lambert authored
      Disambiguate and/or deprecate the following browse URLs:
      
        - GET /browse/origin/(origin_url)/content/(path)/
      
        - GET /browse/origin/(origin_url)/directory/(path)/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/branches/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/content/(path)/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/directory/(path)/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/log/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/releases/
      
        - GET /browse/snapshot/(snapshot_id)/content/(path)/
      
        - GET /browse/snapshot/(snapshot_id)/directory/(path)/
      
      Replace their use by providing timestamp and path as query parameters to these endpoints
      for consistency:
      
        - GET /browse/origin/(origin_url)/content/
      
        - GET /browse/origin/(origin_url)/directory/
      
        - GET /browse/origin/(origin_url)/log/
      
        - GET /browse/origin/(origin_url)/branches/
      
        - GET /browse/origin/(origin_url)/releases/
      
        - GET /browse/snapshot/(snapshot_id)/content/
      
        - GET /browse/snapshot/(snapshot_id)/directory/
      
      Update endpoints documentation to reflect these changes.
      
      Closes T2115
      Closes T2135
      6945c4ef
  5. Apr 22, 2020
  6. Apr 21, 2020
  7. Apr 20, 2020
  8. Apr 17, 2020
  9. Apr 15, 2020
  10. Apr 10, 2020
  11. Apr 08, 2020
  12. Apr 07, 2020
  13. Apr 02, 2020
  14. Apr 01, 2020
  15. Mar 31, 2020
    • Antoine Lambert's avatar
      hypothesis: Fix or ignore deprecation warnings since version 5.6 · f9172f8a
      Antoine Lambert authored
      Since version 5.6, hypothesis warns on `@given` + function-scoped fixtures.
      So turns concerned swh-web fixtures from function-scoped to session-scoped
      (there is strictly no difference in tests execution result after that change)
      and ignore some warnings related to external function-scoped fixtures that
      are safe to use with @given (client from pytest-django and mocker from
      pytest-mock).
      f9172f8a
Loading