Fix existing unit tests by generating a new raw transaction and specifying the shard 1 endpoint where needed
Test Plan: Ran unit tests and saw that they passed: ~/code/pyhmy$ py.test tests/sdk-pyhmy/test_transaction.py --disable-warnings ===================================================================================================== test session starts ====================================================================================================== platform linux -- Python 3.8.6, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /home/hsiung/code/pyhmy, configfile: pytest.ini collected 13 items tests/sdk-pyhmy/test_transaction.py::test_get_pending_transactions PASSED [ 7%] tests/sdk-pyhmy/test_transaction.py::test_get_transaction_by_hash PASSED [ 15%] tests/sdk-pyhmy/test_transaction.py::test_get_transaction_receipt PASSED [ 23%] tests/sdk-pyhmy/test_transaction.py::test_get_transaction_error_sink PASSED [ 30%] tests/sdk-pyhmy/test_transaction.py::test_send_raw_transaction PASSED [ 38%] tests/sdk-pyhmy/test_transaction.py::test_get_pending_cx_receipts PASSED [ 46%] tests/sdk-pyhmy/test_transaction.py::test_get_cx_receipt_by_hash PASSED [ 53%] tests/sdk-pyhmy/test_transaction.py::test_resend_cx_receipt PASSED [ 61%] tests/sdk-pyhmy/test_transaction.py::test_get_staking_transaction_by_hash PASSED [ 69%] tests/sdk-pyhmy/test_transaction.py::test_get_transaction_by_block_hash_and_index PASSED [ 76%] tests/sdk-pyhmy/test_transaction.py::test_get_transaction_by_block_number_and_index PASSED [ 84%] tests/sdk-pyhmy/test_transaction.py::test_get_staking_transaction_error_sink PASSED [ 92%] tests/sdk-pyhmy/test_transaction.py::test_send_raw_staking_transaction PASSED [100%] =============================================================================================== 13 passed, 16 warnings in 50.20s ===============================================================================================pull/15/head
parent
03f12126b5
commit
24ba28d50f
Loading…
Reference in new issue