diff --git a/web3/_utils/module_testing/parity_module.py b/web3/_utils/module_testing/parity_module.py index 326d61b617..4acc9aeb7a 100644 --- a/web3/_utils/module_testing/parity_module.py +++ b/web3/_utils/module_testing/parity_module.py @@ -91,13 +91,7 @@ def test_trace_filter(self, web3, txn_filter_params, parity_fixture_data): trace = web3.parity.traceFilter(txn_filter_params) assert isinstance(trace, list) assert trace[0]['action']['from'] == add_0x_prefix(parity_fixture_data['coinbase']) - - - @pytest.mark.parametrize( - 'params', - ['enode://f1a6b0bdbf014355587c3018454d070ac57801f05d3b39fe85da574f002a32e929f683d72aa5a8318382e4d3c7a05c9b91687b0d997a39619fb8a6e7ad88e512@1.1.1.1:30300'] - ) - def test_add_reserved_peer(self, web3, params): - response = web3.parity.addReservedPeer([params]) - assert response["result"]==True - + + def test_add_reserved_peer(self, web3): + peer_addr = 'enode://f1a6b0bdbf014355587c3018454d070ac57801f05d3b39fe85da574f002a32e929f683d72aa5a8318382e4d3c7a05c9b91687b0d997a39619fb8a6e7ad88e512@1.1.1.1:30300' # noqa: E501 + assert web3.parity.addReservedPeer(peer_addr) diff --git a/web3/parity.py b/web3/parity.py index 666a67edd2..cb78efe39f 100644 --- a/web3/parity.py +++ b/web3/parity.py @@ -83,10 +83,10 @@ def netPeers(self): [], ) - def addReservedPeer(self, params): + def addReservedPeer(self, url): return self.web3.manager.request_blocking( "parity_addReservedPeer", - params, + [url], ) def traceReplayTransaction(self, transaction_hash, mode=['trace']):