Skip to content

Commit

Permalink
test: use fixture for payment entry test cases (#31390)
Browse files Browse the repository at this point in the history
refactor: use fixture for payment entry test cases
  • Loading branch information
ruthra-kumar authored Jun 17, 2022
1 parent 74a782d commit 05467ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/accounts/doctype/payment_entry/test_payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import unittest

import frappe
from frappe.tests.utils import FrappeTestCase
from frappe.utils import flt, nowdate

from erpnext.accounts.doctype.payment_entry.payment_entry import (
Expand All @@ -24,7 +25,10 @@
test_dependencies = ["Item"]


class TestPaymentEntry(unittest.TestCase):
class TestPaymentEntry(FrappeTestCase):
def tearDown(self):
frappe.db.rollback()

def test_payment_entry_against_order(self):
so = make_sales_order()
pe = get_payment_entry("Sales Order", so.name, bank_account="_Test Cash - _TC")
Expand Down

0 comments on commit 05467ff

Please sign in to comment.