Skip to content

Commit c937730

Browse files
committed
fix(test): URY Payment Terminal autoname is prompt, needs explicit name
1 parent 95c9aa6 commit c937730

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ury/ury/api/test_payment_terminal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ class TestSimulatedPaymentTerminalProvider(unittest.TestCase):
5050
flips it to Cancelled. It is never the default provider in production."""
5151

5252
def setUp(self):
53+
terminal_id = frappe.generate_hash(length=8)
5354
self.terminal = frappe.get_doc(
5455
{
5556
"doctype": "URY Payment Terminal",
56-
"terminal_id": frappe.generate_hash(length=8),
57+
# autoname is "prompt" on this doctype -- name must be set explicitly.
58+
"name": terminal_id,
59+
"terminal_id": terminal_id,
5760
"provider": "Simulated",
5861
"status": "Idle",
5962
}

0 commit comments

Comments
 (0)