fix(treewide): manual ruff fixes

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang
2024-03-27 12:16:13 +05:30
parent 3effaf21ef
commit f63396ef47
34 changed files with 121 additions and 136 deletions

View File

@@ -139,13 +139,16 @@ class TestAccountsController(FrappeTestCase):
qty=1,
rate=1,
conversion_rate=80,
posting_date=nowdate(),
posting_date=None,
do_not_save=False,
do_not_submit=False,
):
"""
Helper function to populate default values in sales invoice
"""
if posting_date is None:
posting_date = nowdate()
sinv = create_sales_invoice(
qty=qty,
rate=rate,
@@ -170,10 +173,13 @@ class TestAccountsController(FrappeTestCase):
)
return sinv
def create_payment_entry(self, amount=1, source_exc_rate=75, posting_date=nowdate(), customer=None):
def create_payment_entry(self, amount=1, source_exc_rate=75, posting_date=None, customer=None):
"""
Helper function to populate default values in payment entry
"""
if posting_date is None:
posting_date = nowdate()
payment = create_payment_entry(
company=self.company,
payment_type="Receive",