Skip to content
Snippets Groups Projects
  1. Oct 18, 2022
  2. Apr 26, 2022
  3. Apr 08, 2022
  4. Dec 16, 2021
  5. Sep 30, 2021
  6. Apr 27, 2021
  7. Feb 04, 2021
  8. Nov 27, 2020
    • vlorentz's avatar
      fix mypy error in swh/deposit/urls.py · f02b7f71
      vlorentz authored
      If djangorestframework-stubs does not contain the stub for
      `format_suffix_patterns`, then mypy does not see any issue on passing it
      a `List[object]` as argument, so the `# type: ignore` is useless,
      so mypy complains about it.
      f02b7f71
  9. Oct 02, 2020
  10. Sep 24, 2020
  11. Jul 09, 2020
  12. May 14, 2020
  13. May 11, 2020
  14. Apr 08, 2020
    • Nicolas Dandrimont's avatar
      Update type annotations and signatures to match djangorestframework-stubs · dfd33d2d
      Nicolas Dandrimont authored
      I noticed this because my virtualenv ended up with the djangorestframework-stubs
      package installed, which made the mypy pre-commit hook fail.
      
      This commit adds drf-stubs to the tox.ini, and does the relevant updates to our
      type annotations/signatures.
      
      Turns out that upstream DRF has all `request` parameters named that way, so we
      rename all our `req` parameters to match, which appeases mypy's signature
      checks.
      dfd33d2d
    • David Douard's avatar
      Enable black · f5426d67
      David Douard authored
      - blackify all the python files,
      - enable black in pre-commit,
      - add a black tox environment.
      f5426d67
  15. Jan 10, 2020
    • David Douard's avatar
      Make tests pass with django 2 · 75e7385e
      David Douard authored
      For this we:
      
      - ensure we create the DepositRequest with str as raw_metadata (instead
        of a bytes), and
      - make atom_dataset return a str instead of a bytes
      
        Every time this chunk of data is sent on the wire (http req to the django app)
        this needs to be an str, otherwise we have things like:
      
          raw_metadata = "b'[...]'"
      
        especially when testing against django 2, which is the only django version
        available on debian sid, so this is needed to make it possible to build the
        deb file on sid *with* tests enabled.
      - add a py3-django2 environment in tox
      - bump the dependency to django <3 in requirements-server.txt (otherwise it
        will take precendence on the deps: field of the tox file, thus execute tests
        in py3-django2 with django 1.11).
      
      Note that no other tests than executing pytest have been done with django2, so
      do not expect it works flawlessly.
      75e7385e
  16. Dec 20, 2019
    • David Douard's avatar
      tests: make tests run with a proper scheduler · 5a635951
      David Douard authored
      so the scheduler interaction code is executed.
      
      Note that this does not test for correctness in these interactions yet.
      
      also move tests/__init__.py content in tests/conftest.py and adapt test code
      accordingly.
      
      This also ensures retries_left is set otherwise tests may fail when using
      the local sheduler.
      5a635951
  17. Dec 03, 2019
  18. Nov 21, 2019
  19. Nov 07, 2019
  20. Nov 01, 2019
  21. Oct 21, 2019
  22. Oct 19, 2019
  23. May 20, 2019
  24. Apr 13, 2019
  25. Nov 07, 2018
  26. Oct 29, 2018
  27. Oct 24, 2018
Loading