Created
November 26, 2018 21:08
-
-
Save feuGeneA/68e714f2cd942f4cfef094b26459b912 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gene@precision5510:~/0x-monorepo-upstream/python-packages/order_utils$ pytest test/test_get_order_info.py | |
============================= test session starts ============================== | |
platform linux -- Python 3.7.0, pytest-3.3.2, py-1.6.0, pluggy-0.6.0 | |
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/gene/0x-monorepo-upstream/python-packages/order_utils/.hypothesis/examples') | |
rootdir: /home/gene/0x-monorepo-upstream/python-packages/order_utils, inifile: | |
plugins: xdist-1.22.3, pythonpath-0.7.3, forked-0.2, hypothesis-3.82.1 | |
collected 1 item | |
test/test_get_order_info.py F [100%] | |
=================================== FAILURES =================================== | |
_______________________ test_get_order_info__happy_path ________________________ | |
def test_get_order_info__happy_path(): | |
"""Test that get_order_info() works as expected.""" | |
get_order_info( | |
Web3.HTTPProvider("http://127.0.0.1:8545"), | |
{ | |
'makerAddress': "0x0000000000000000000000000000000000000000", | |
'takerAddress': "0x0000000000000000000000000000000000000000", | |
'feeRecipientAddress': ( | |
"0x0000000000000000000000000000000000000000" | |
), | |
'senderAddress': "0x0000000000000000000000000000000000000000", | |
'makerAssetAmount': 1000000000000000000, | |
'takerAssetAmount': 1000000000000000000, | |
'makerFee': 0, | |
'takerFee': 0, | |
'expirationTimeSeconds': 12345, | |
'salt': 12345, | |
'makerAssetData': b"0000000000000000000000000000000000000000", | |
> 'takerAssetData': b"0000000000000000000000000000000000000000", | |
}, | |
) | |
test/test_get_order_info.py:27: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
src/zero_ex/order_utils/__init__.py:234: in get_order_info | |
return contract.call().getOrderInfo(order) | |
../../../web3.py/web3/contract.py:1384: in call_contract_function | |
output_data = decode_abi(output_types, return_data) | |
../../../eth-abi/eth_abi/abi.py:90: in decode_abi | |
for type_str in types | |
../../../eth-abi/eth_abi/abi.py:90: in <listcomp> | |
for type_str in types | |
../../../eth-abi/eth_abi/registry.py:332: in get_decoder | |
return self._get_coder(self._decoders, type_str) | |
../../../eth-abi/eth_abi/registry.py:288: in _get_coder | |
coder = mapping.find(type_str) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <eth_abi.registry.PredicateMapping object at 0x7f0bafec1550> | |
type_str = 'tuple' | |
def find(self, type_str): | |
results = tuple( | |
(predicate, value) for predicate, value in self._values.items() | |
if predicate(type_str) | |
) | |
if len(results) == 0: | |
raise ValueError("No matching entries for '{}' in {}".format( | |
type_str, | |
> self._name, | |
)) | |
E ValueError: No matching entries for 'tuple' in decoder registry | |
../../../eth-abi/eth_abi/registry.py:54: ValueError | |
------------------------------ Captured log call ------------------------------- | |
manager.py 90 DEBUG Making request. Method: net_version | |
rpc.py 63 DEBUG Making request HTTP. URI: http://127.0.0.1:8545, Method: net_version | |
connectionpool.py 205 DEBUG Starting new HTTP connection (1): 127.0.0.1:8545 | |
connectionpool.py 393 DEBUG http://127.0.0.1:8545 "POST / HTTP/1.1" 200 None | |
rpc.py 73 DEBUG Getting response HTTP. URI: http://127.0.0.1:8545, Method: net_version, Response: {'id': 0, 'jsonrpc': '2.0', 'result': '50'} | |
manager.py 90 DEBUG Making request. Method: eth_call | |
rpc.py 63 DEBUG Making request HTTP. URI: http://127.0.0.1:8545, Method: eth_call | |
connectionpool.py 393 DEBUG http://127.0.0.1:8545 "POST / HTTP/1.1" 200 None | |
rpc.py 73 DEBUG Getting response HTTP. URI: http://127.0.0.1:8545, Method: eth_call, Response: {'id': 1, 'jsonrpc': '2.0', 'result': '0x0'} | |
=========================== 1 failed in 0.46 seconds =========================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment