diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-11-14 23:41:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 23:41:52 +0800 |
commit | e1d64def2017ced0aba599b989ad42a51fdd46fe (patch) | |
tree | 3f1a0c101c6486998ffbc96e082f9772fad93f82 /python-packages/order_utils/test | |
parent | fe1b7f15e8531615a54e46581cb734e635d3c755 (diff) | |
download | dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.gz dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.bz2 dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.lz dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.xz dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.zst dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.zip |
feat(order_utils.py): sign_hash() (#1254)
Also moved is_valid_signature() into main package module, for
simplicity.
Also consolidated a handul of in-line pylint disable directives into the
.pylintrc config file.
Diffstat (limited to 'python-packages/order_utils/test')
3 files changed, 3 insertions, 4 deletions
diff --git a/python-packages/order_utils/test/test_doctest.py b/python-packages/order_utils/test/test_doctest.py index 2b0350ac0..f692b3b6c 100644 --- a/python-packages/order_utils/test/test_doctest.py +++ b/python-packages/order_utils/test/test_doctest.py @@ -8,7 +8,6 @@ import zero_ex def test_all_doctests(): """Gather zero_ex.* modules and doctest them.""" - # prefer `black` formatting. pylint: disable=bad-continuation for (importer, modname, _) in pkgutil.walk_packages( path=zero_ex.__path__, prefix="zero_ex." ): diff --git a/python-packages/order_utils/test/test_generate_order_hash_hex.py b/python-packages/order_utils/test/test_generate_order_hash_hex.py index e393f38d7..af78d208c 100644 --- a/python-packages/order_utils/test/test_generate_order_hash_hex.py +++ b/python-packages/order_utils/test/test_generate_order_hash_hex.py @@ -3,7 +3,7 @@ from zero_ex.order_utils import ( generate_order_hash_hex, make_empty_order, - Constants, + _Constants, ) @@ -13,6 +13,6 @@ def test_get_order_hash_hex__empty_order(): "faa49b35faeb9197e9c3ba7a52075e6dad19739549f153b77dfcf59408a4b422" ) actual_hash_hex = generate_order_hash_hex( - make_empty_order(), Constants.null_address + make_empty_order(), _Constants.null_address ) assert actual_hash_hex == expected_hash_hex diff --git a/python-packages/order_utils/test/test_signature_utils.py b/python-packages/order_utils/test/test_signature_utils.py index b688e03a1..c5acc9d62 100644 --- a/python-packages/order_utils/test/test_signature_utils.py +++ b/python-packages/order_utils/test/test_signature_utils.py @@ -3,7 +3,7 @@ import pytest from web3 import Web3 -from zero_ex.order_utils.signature_utils import is_valid_signature +from zero_ex.order_utils import is_valid_signature def test_is_valid_signature__provider_wrong_type(): |