ttx_from_any: strip whitespaces - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit bf8a58c0b49528573b9651b7a27a4168ec5985f7 DIR parent 365aa189f274970ef2f4446f6e89b429e41b4ae5 HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 8 Nov 2019 17:51:48 +0100 ttx_from_any: strip whitespaces see https://github.com/spesmilo/electrum/pull/5721#issuecomment-551876236 Diffstat: M electrum/tests/test_transaction.py | 62 +++++++++++++++++++------------ M electrum/transaction.py | 12 ++++++------ 2 files changed, 45 insertions(+), 29 deletions(-) --- DIR diff --git a/electrum/tests/test_transaction.py b/electrum/tests/test_transaction.py t@@ -1,3 +1,5 @@ +from typing import NamedTuple, Union + from electrum import transaction, bitcoin from electrum.transaction import convert_raw_tx_to_hex, tx_from_any, Transaction, PartialTransaction from electrum.bitcoin import TYPE_ADDRESS t@@ -197,29 +199,43 @@ class TestTransaction(ElectrumTestCase): partial_tx.serialize_as_bytes(force_psbt=True).hex()) def test_tx_from_any(self): - # network tx - with self.subTest(msg="hex str network tx"): parazyd.org:70 /git/electrum/commit/bf8a58c0b49528573b9651b7a27a4168ec5985f7.gph:36: line too long