Skip to content

Commit

Permalink
api: use LocalProxy instead of decorator
Browse files Browse the repository at this point in the history
* Introduces single variable local proxy instead of decorator- before we
depended on the with_api_client decorator, and the click context- now it's only
one LocalProxy.
* Removes Client class because it was using inheritance (from BaseAPIClient)
and it wasn't a correct relation. Without it it was just a collection of static
methods so we decided to leave them as separate functions.
* Removes mock_base_api_client fixture because it was returning a Client class
instance, when the class is no longer present. Something similar is
necessery because now we have a repeating code in lots of places-see the
issue: #219 (comment)
  • Loading branch information
okraskaj authored and Diego Rodriguez committed Dec 11, 2018
1 parent 76347f9 commit 45563e0
Show file tree
Hide file tree
Showing 13 changed files with 857 additions and 858 deletions.
2 changes: 0 additions & 2 deletions reana_client/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@
"""Python api for connecting to REANA server."""

from __future__ import absolute_import, print_function

from .client import Client
Loading

0 comments on commit 45563e0

Please sign in to comment.