fix: test

This commit is contained in:
Saqib Ansari 2021-01-27 17:11:34 +05:30
parent 58250aac10
commit 6db14d02d2

View File

@ -18,17 +18,6 @@ class TestTaxWithholdingCategory(unittest.TestCase):
create_records()
create_tax_with_holding_category()
def tearDown(self):
frappe.db.sql('delete from `tabPurchase Invoice` where supplier = "Test TDS Supplier"')
frappe.db.sql('delete from `tabPurchase Invoice` where supplier = "Test TDS Supplier1"')
frappe.db.sql('delete from `tabPurchase Invoice` where supplier = "Test TDS Supplier2"')
frappe.db.sql('delete from `tabPurchase Invoice` where supplier = "Test TDS Supplier ABC"')
frappe.db.sql('delete from `tabGL Entry` where party = "Test TDS Supplier"')
frappe.db.sql('delete from `tabGL Entry` where party = "Test TDS Supplier1"')
frappe.db.sql('delete from `tabGL Entry` where party = "Test TDS Supplier2"')
frappe.db.sql('delete from `tabGL Entry` where party = "Test TDS Supplier ABC"')
def test_cumulative_threshold_tds(self):
frappe.db.set_value("Supplier", "Test TDS Supplier", "tax_withholding_category", "Cumulative Threshold TDS")
invoices = []