Skip to content
Snippets Groups Projects
  1. Dec 11, 2019
  2. Dec 10, 2019
  3. Nov 21, 2019
  4. Nov 20, 2019
  5. Nov 19, 2019
  6. Nov 18, 2019
  7. Nov 15, 2019
  8. Nov 14, 2019
  9. Nov 13, 2019
  10. Nov 06, 2019
  11. Oct 25, 2019
  12. Oct 18, 2019
  13. Oct 14, 2019
  14. Oct 11, 2019
    • David Douard's avatar
      api/tests: add pytest plumbing for testing rpc client/server stack as a whole · 2acfa748
      David Douard authored
      This uses both
      
      - the `client` test fixture (from pytest-flask) to allow to easily call
        RPCServerApp based application methods,
      - a `requests` Adapter class to make the RPCClient based proxy route the
        HTTP requests directly to the RPCServerApp test client above, without
        the need for a running HTTP server.
      
      This adapter overload the `send()` method to call the Flake test app open()
      method (instead of doing a real network connection), and convert the
      wertzeug based Response object into a `requests` one.
      
      Also add a few tests for the RPC client/server communication provided in
      swh.core.api via RPCServerApp and RPCClient classes.
    • David Douard's avatar
      api: fix swh.core.api.decode_request on python 3.5 · 18e4be54
      David Douard authored
      The json decoder was broken on py35, as is used to expect a str object and
      not a bytes one. For now, we encode the bytes one using utf-8.
      
      This could/should be reverted as soon as we drop support for py35.
      18e4be54
  15. Oct 10, 2019
  16. Oct 09, 2019
Loading