Skip to content

Commit

Permalink
rename some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvadari committed Oct 10, 2024
1 parent b79c7f7 commit 2443f4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"keypair",
"keypairs",
"multisign",
"multisigned",
"nftoken",
"PATHSET",
"rippletest",
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/models/transactions/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def test_multisigned_transaction_xaddress(self):
self.assertTrue(multisigned_tx.is_signed())

# test the usage of DeliverMax field in Payment transactions
def test_payment_txn_API_no_deliver_max(self):
def test_payment_txn_api_no_deliver_max(self):
delivered_amount = "200000"
payment_tx_json = {
"Account": "rGWTUVmm1fB5QUjMYn8KfnyrFNgDiD9H9e",
Expand All @@ -187,7 +187,7 @@ def test_payment_txn_API_no_deliver_max(self):
payment_txn = Payment.from_xrpl(payment_tx_json)
self.assertEqual(delivered_amount, payment_txn.to_dict()["amount"])

def test_payment_txn_API_no_amount(self):
def test_payment_txn_api_no_amount(self):
delivered_amount = "200000"
payment_tx_json = {
"Account": "rGWTUVmm1fB5QUjMYn8KfnyrFNgDiD9H9e",
Expand All @@ -203,7 +203,7 @@ def test_payment_txn_API_no_amount(self):
payment_txn = Payment.from_xrpl(payment_tx_json)
self.assertEqual(delivered_amount, payment_txn.to_dict()["amount"])

def test_payment_txn_API_different_amount_and_deliver_max(self):
def test_payment_txn_api_different_amount_and_deliver_max(self):
payment_tx_json = {
"Account": "rGWTUVmm1fB5QUjMYn8KfnyrFNgDiD9H9e",
"Destination": "rw71Qs1UYQrSQ9hSgRohqNNQcyjCCfffkQ",
Expand All @@ -219,7 +219,7 @@ def test_payment_txn_API_different_amount_and_deliver_max(self):
with self.assertRaises(XRPLModelException):
Payment.from_xrpl(payment_tx_json)

def test_payment_txn_API_identical_amount_and_deliver_max(self):
def test_payment_txn_api_identical_amount_and_deliver_max(self):
delivered_amount = "200000"
payment_tx_json = {
"Account": "rGWTUVmm1fB5QUjMYn8KfnyrFNgDiD9H9e",
Expand Down

0 comments on commit 2443f4c

Please sign in to comment.