Skip to content
Snippets Groups Projects
  1. Apr 23, 2021
  2. Apr 16, 2021
  3. Apr 15, 2021
  4. Apr 06, 2021
    • Vincent Sellier's avatar
      Allow to use several backends with a RPCServerApp · cbc9b86b
      Vincent Sellier authored
      This is needed for the swh-counters module, one backend uses Redis to
      manage the counters by themselves, and another one manages the history
      files using prometheus.
      Each one can possibly evolve separately or can use a different backend
      implementation one day or another.
      
      Related to T3165
    • vlorentz's avatar
      Remove dependency on 'decorator' · 246abfb9
      vlorentz authored
      I don't understand what this library does or why we needed it.
      This commit replaces it with the good old functools.wraps(),
      which fixes this crash that started occuring with
      decorator 5.0.5:
      
      ```
      ERROR    testapp:app.py:1892 Exception on /foo [POST]
      Traceback (most recent call last):
        File "/home/dev/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
          response = self.full_dispatch_request()
        File "/home/dev/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
          rv = self.handle_user_exception(e)
        File "/home/dev/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
          reraise(exc_type, exc_value, tb)
        File "/home/dev/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
          raise value
        File "/home/dev/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
          rv = self.dispatch_request()
        File "/home/dev/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
          return self.view_functions[rule.endpoint](**req.view_args)
        File "/home/dev/.local/lib/python3.7/site-packages/decorator.py", line 231, in fun
          args, kw = fix(args, kw, sig)
        File "/home/dev/.local/lib/python3.7/site-packages/decorator.py", line 203, in fix
          ba = sig.bind(*args, **kwargs)
        File "/usr/lib/python3.7/inspect.py", line 3015, in bind
          return args[0]._bind(args[1:], kwargs)
        File "/usr/lib/python3.7/inspect.py", line 2930, in _bind
          raise TypeError(msg) from None
      TypeError: missing a required argument: 'self'
      ```
      
      https://github.com/micheles/decorator/issues/109
  5. Apr 02, 2021
  6. Mar 26, 2021
  7. Mar 03, 2021
    • Antoine Lambert's avatar
      tests: Drop hypothesis < 6 requirement · 76360cc7
      Antoine Lambert authored
      Ensure tests can be executed using hypothesis >= 6 by suppressing
      the function_scoped_fixture health check on test that uses a function
      scope fixture in combination with @given that does not need to be reset
      between individual hypothesis examples.
      76360cc7
  8. Feb 16, 2021
  9. Jan 20, 2021
  10. Dec 11, 2020
  11. Dec 08, 2020
  12. Nov 27, 2020
  13. Nov 26, 2020
  14. Nov 24, 2020
  15. Nov 23, 2020
  16. Nov 20, 2020
  17. Nov 19, 2020
  18. Oct 30, 2020
  19. Oct 29, 2020
    • Tenma's avatar
      core tests: disambiguate arg 'request' through typing · 12fa6f26
      Tenma authored
      Both requests.Request and _pytest.FixtureRequest objects are passed to
      test fixtures as argument 'request'. This hurts readability.
      Adding typing annotations makes it clear which one is meant.
      12fa6f26
  20. Oct 28, 2020
  21. Oct 23, 2020
  22. Oct 22, 2020
  23. Oct 21, 2020
Loading