mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
chore: resolve linter issue
This commit is contained in:
committed by
ruthra kumar
parent
a503460bd5
commit
4da44e2c3f
@@ -232,9 +232,7 @@ class TestSalesOrder(AccountsTestMixin, FrappeTestCase):
|
|||||||
si1 = make_sales_invoice(so.name)
|
si1 = make_sales_invoice(so.name)
|
||||||
self.assertEqual(len(si1.get("items")), 0)
|
self.assertEqual(len(si1.get("items")), 0)
|
||||||
|
|
||||||
@change_settings(
|
@change_settings("Accounts Settings", {"automatically_fetch_payment_terms": 1}) # Enable auto fetch
|
||||||
"Accounts Settings", {"automatically_fetch_payment_terms": 1}
|
|
||||||
) # Enable auto fetch
|
|
||||||
def test_auto_fetch_terms_enable(self):
|
def test_auto_fetch_terms_enable(self):
|
||||||
so = make_sales_order(do_not_submit=True)
|
so = make_sales_order(do_not_submit=True)
|
||||||
|
|
||||||
@@ -248,9 +246,7 @@ class TestSalesOrder(AccountsTestMixin, FrappeTestCase):
|
|||||||
si.insert()
|
si.insert()
|
||||||
si.submit()
|
si.submit()
|
||||||
|
|
||||||
@change_settings(
|
@change_settings("Accounts Settings", {"automatically_fetch_payment_terms": 0}) # Disable auto fetch
|
||||||
"Accounts Settings", {"automatically_fetch_payment_terms": 0}
|
|
||||||
) # Disable auto fetch
|
|
||||||
def test_auto_fetch_terms_disable(self):
|
def test_auto_fetch_terms_disable(self):
|
||||||
so = make_sales_order(do_not_submit=True)
|
so = make_sales_order(do_not_submit=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user