Skip to content
Snippets Groups Projects
Verified Commit fd8f1697 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

test_rpc_client: Fix flake8 warnings

parent 56038687
Branches master
No related tags found
1 merge request!408Apply swh-py-template v0.3.3 with copier
Pipeline #13230 passed
......@@ -30,20 +30,24 @@ class ReraiseException(Exception):
def rpc_client_class(requests_mock):
class TestStorage:
@remote_api_endpoint("test_endpoint_url")
def test_endpoint(self, test_data, db=None, cur=None): ...
def test_endpoint(self, test_data, db=None, cur=None):
pass
@remote_api_endpoint("path/to/endpoint")
def something(self, data, db=None, cur=None): ...
def something(self, data, db=None, cur=None):
pass
@remote_api_endpoint("serializer_test")
def serializer_test(self, data, db=None, cur=None): ...
def serializer_test(self, data, db=None, cur=None):
pass
@remote_api_endpoint("overridden/endpoint")
def overridden_method(self, data):
return "foo"
@remote_api_endpoint("request_too_large")
def request_too_large(self, data, db=None, cur=None): ...
def request_too_large(self, data, db=None, cur=None):
pass
class Testclient(RPCClient):
backend_class = TestStorage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment