Skip to content
Snippets Groups Projects
  1. May 20, 2019
  2. May 17, 2019
  3. May 16, 2019
  4. May 15, 2019
  5. May 13, 2019
  6. May 06, 2019
  7. Apr 19, 2019
  8. Apr 12, 2019
  9. Apr 09, 2019
    • vlorentz's avatar
      Explicitely give Db connections back to the pool. · 1d9c0bf0
      vlorentz authored
      So they gracefully release the connection on error instead
      of relying on reference-counting to call the Db's `__del__`
      (which does not happen in Hypothesis tests) because a ref
      to it is kept via the traceback object.
      v0.0.59
      1d9c0bf0
  10. Apr 02, 2019
  11. Mar 28, 2019
  12. Mar 27, 2019
  13. Mar 19, 2019
    • David Douard's avatar
    • David Douard's avatar
      api: refactor the SWHRemoteAPI's exception class handling · 577e933e
      David Douard authored
      - add a default implementation of the exception class
      - make the exception class a class attribute of SWHRemoteAPI that can be
        overloaded at instanciation time by the api_exception named argument
      - so the api_exception positional argument of SWHRemoteAPI becomes a named
        argument
      
      WARNING: This later point does break compatibility for any use of this class
      not using named arguments when instanciating it. Fortunately, as far as I
      know, every swh packages does use named argument when instanciating this
      class, so this should not break anything.
      v0.0.56
      577e933e
    • David Douard's avatar
      api: kind of fix for the SWHRemoteAPI's contructor · 8147cd7f
      David Douard authored
      - ensure we do accept **kwargs so any super().__init__(**kwargs) from an
        unexpected MRO path in an indecent maze of multi-inheritance will not crash
      - do not call super().__init__(); it is either useless (most probably,
        super() is object in this context) or silently ignore passed kwargs that
        super() (when it's not object) may have been able to understand...
      
      Long story short, kwargs handling in multi-inheritance __init__ methods is
      a mess.
      8147cd7f
    • David Douard's avatar
      api: factorize SWHRemoteAPI.(get|post)_stream methods · 5299aa75
      David Douard authored
      - merge raw_post and row_get in a unique raw_verb method,
      - merge post_stream() and post() as a unique post(); post_strean is then a
        call to post with the 'stream' parameter set,
      - merge get_stream() and get() the same.
      5299aa75
    • David Douard's avatar
      tests: ensure LC_ALL is set to C.UTF-8 for pytest · bd112a0a
      David Douard authored
      so the pytest-postgresql fixture works as expected on non C locale systems.
      bd112a0a
  14. Mar 18, 2019
  15. Feb 28, 2019
  16. Feb 19, 2019
  17. Feb 11, 2019
  18. Feb 07, 2019
  19. Feb 01, 2019
  20. Jan 31, 2019
  21. Jan 30, 2019
  22. Jan 29, 2019
Loading