From 593147d3374004f6696fac9d956fd9460a4843c2 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Fri, 24 Jun 2022 14:37:11 +0530 Subject: [PATCH] test: move code to ensure fixtures get created --- .../doctype/purchase_invoice/test_purchase_invoice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py index 6412da709f..c0fa176bc0 100644 --- a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py @@ -1474,15 +1474,15 @@ class TestPurchaseInvoice(unittest.TestCase, StockTestMixin): def test_purchase_invoice_advance_taxes(self): from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry + # Update tax withholding category with current fiscal year and rate details + update_tax_witholding_category("_Test Company", "TDS Payable - _TC") + # create a new supplier to test supplier = create_supplier( supplier_name="_Test TDS Advance Supplier", tax_withholding_category="TDS - 194 - Dividends - Individual", ) - # Update tax withholding category with current fiscal year and rate details - update_tax_witholding_category("_Test Company", "TDS Payable - _TC") - # Create Purchase Order with TDS applied po = create_purchase_order( do_not_save=1,