Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvadari committed Jan 28, 2025
1 parent 52d9551 commit 07e4999
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit/models/test_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_from_dict_recursive_currency(self):

def test_from_dict_recursive_transaction(self):
transaction = CheckCreate.from_dict(check_create_dict)
sign_dict = {"secret": secret, "transaction": transaction.to_dict()}
sign_dict = {"secret": secret, "tx_json": transaction.to_xrpl()}
sign = Sign.from_dict(sign_dict)

expected_dict = {
Expand All @@ -136,12 +136,11 @@ def test_from_dict_recursive_transaction(self):
"offline": False,
"api_version": _DEFAULT_API_VERSION,
}
del expected_dict["transaction"]
self.assertEqual(expected_dict, sign.to_dict())

def test_from_dict_recursive_transaction_tx_json(self):
transaction = CheckCreate.from_dict(check_create_dict)
sign_dict = {"secret": secret, "tx_json": transaction.to_dict()}
sign_dict = {"secret": secret, "tx_json": transaction.to_xrpl()}
sign = Sign.from_dict(sign_dict)

expected_dict = {
Expand Down

0 comments on commit 07e4999

Please sign in to comment.