diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-10-11 00:14:20 +0800 |
---|---|---|
committer | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-10-13 03:31:19 +0800 |
commit | 92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308 (patch) | |
tree | 0f3f9a79e140748775f01af7e8b87bd36f497ed7 /python-packages/order_utils/test | |
parent | f3cba233ad84b1c8191e91f35b72faa6a64078fa (diff) | |
download | dexon-sol-tools-92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308.tar dexon-sol-tools-92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308.tar.gz dexon-sol-tools-92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308.tar.bz2 dexon-sol-tools-92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308.tar.lz dexon-sol-tools-92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308.tar.xz dexon-sol-tools-92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308.tar.zst dexon-sol-tools-92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308.zip |
feat: project stub for python order utilities
An empty project, with respect to functionality, but one configured with
a test framework, linters, CI integration, etc.
https://app.asana.com/0/836857747873847/839549782781239/f
Diffstat (limited to 'python-packages/order_utils/test')
-rw-r--r-- | python-packages/order_utils/test/__init__.py | 1 | ||||
-rw-r--r-- | python-packages/order_utils/test/test_doctest.py | 10 | ||||
-rw-r--r-- | python-packages/order_utils/test/test_signature_utils.py | 8 |
3 files changed, 19 insertions, 0 deletions
diff --git a/python-packages/order_utils/test/__init__.py b/python-packages/order_utils/test/__init__.py new file mode 100644 index 000000000..ec5b114aa --- /dev/null +++ b/python-packages/order_utils/test/__init__.py @@ -0,0 +1 @@ +"""Tests of zero_x.order_utils.""" diff --git a/python-packages/order_utils/test/test_doctest.py b/python-packages/order_utils/test/test_doctest.py new file mode 100644 index 000000000..a0e61f84a --- /dev/null +++ b/python-packages/order_utils/test/test_doctest.py @@ -0,0 +1,10 @@ +"""Exercise doctests for order_utils module.""" + +from doctest import testmod +from zero_ex.order_utils import signature_utils + + +def test_doctest(): + """Invoke doctest on the module.""" + (failure_count, _) = testmod(signature_utils) + assert failure_count == 0 diff --git a/python-packages/order_utils/test/test_signature_utils.py b/python-packages/order_utils/test/test_signature_utils.py new file mode 100644 index 000000000..7e830f9f8 --- /dev/null +++ b/python-packages/order_utils/test/test_signature_utils.py @@ -0,0 +1,8 @@ +"""Tests of 0x.order_utils.signature_utils.*.""" + +from zero_ex.order_utils.signature_utils import ec_sign_order_hash + + +def test_ec_sign_order_hash(): + """Test the signing of order hashes.""" + assert ec_sign_order_hash() == "stub return value" |