From 6ca16b94a6276b2c23b5ba3291af2a8ce4ad5363 Mon Sep 17 00:00:00 2001 From: Nihantra Patel Date: Thu, 10 Oct 2024 11:28:48 +0530 Subject: [PATCH] fix: method name and company wise filter in accouts field --- .../loan_management/doctype/loan/test_loan.py | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lending/loan_management/doctype/loan/test_loan.py b/lending/loan_management/doctype/loan/test_loan.py index 39bf563f..6ba2817c 100644 --- a/lending/loan_management/doctype/loan/test_loan.py +++ b/lending/loan_management/doctype/loan/test_loan.py @@ -24,7 +24,7 @@ unpledge_security, ) from lending.loan_management.doctype.loan_application.loan_application import ( - create_loan_security_assignment_from_loan_application_from_loan_application, + create_loan_security_assignment_from_loan_application, ) from lending.loan_management.doctype.loan_disbursement.loan_disbursement import ( get_disbursal_amount, @@ -205,7 +205,7 @@ def test_loan_with_security(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Stock Loan", pledge, "Repay Over Number of Periods", 12 ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_loan_with_security( self.applicant2, "Stock Loan", "Repay Over Number of Periods", 12, loan_application @@ -219,7 +219,7 @@ def test_loan_disbursement(self): "_Test Company", self.applicant2, "Stock Loan", pledge, "Repay Over Number of Periods", 12 ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_loan_with_security( self.applicant2, "Stock Loan", "Repay Over Number of Periods", 12, loan_application @@ -281,7 +281,7 @@ def test_sanctioned_amount_limit(self): loan_application = create_loan_application( "_Test Company", self.applicant3, "Demand Loan", pledge ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan( self.applicant3, "Demand Loan", loan_application, posting_date="2019-10-01" ) @@ -299,7 +299,7 @@ def test_regular_loan_repayment(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Demand Loan", pledge ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan( self.applicant2, "Demand Loan", loan_application, posting_date="2019-10-01" @@ -360,7 +360,7 @@ def test_loan_closure(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Demand Loan", pledge ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan( self.applicant2, "Demand Loan", loan_application, posting_date="2019-10-01" ) @@ -416,7 +416,7 @@ def test_loan_repayment_for_term_loan(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Stock Loan", pledges, "Repay Over Number of Periods", 12 ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_loan_with_security( self.applicant2, @@ -467,7 +467,7 @@ def test_security_shortfall(self): "_Test Company", self.applicant2, "Stock Loan", pledges, "Repay Over Number of Periods", 12 ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_loan_with_security( self.applicant2, "Stock Loan", "Repay Over Number of Periods", 12, loan_application @@ -505,7 +505,7 @@ def test_loan_security_release(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Demand Loan", pledge ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan( self.applicant2, "Demand Loan", loan_application, posting_date="2019-10-01" @@ -565,7 +565,7 @@ def test_partial_loan_security_release(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Demand Loan", pledge ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan( self.applicant2, "Demand Loan", loan_application, posting_date="2019-10-01" @@ -601,7 +601,7 @@ def test_sanctioned_loan_security_release(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Demand Loan", pledge ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan( self.applicant2, "Demand Loan", loan_application, posting_date="2019-10-01" @@ -630,7 +630,7 @@ def test_disbursal_check_with_shortfall(self): "_Test Company", self.applicant2, "Stock Loan", pledges, "Repay Over Number of Periods", 12 ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_loan_with_security( self.applicant2, "Stock Loan", "Repay Over Number of Periods", 12, loan_application @@ -669,7 +669,7 @@ def test_disbursal_check_without_shortfall(self): "_Test Company", self.applicant2, "Stock Loan", pledges, "Repay Over Number of Periods", 12 ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_loan_with_security( self.applicant2, "Stock Loan", "Repay Over Number of Periods", 12, loan_application @@ -687,7 +687,7 @@ def test_pending_loan_amount_after_closure_request(self): loan_application = create_loan_application( "_Test Company", self.applicant2, "Demand Loan", pledge ) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan( self.applicant2, "Demand Loan", loan_application, posting_date="2019-10-01" @@ -737,7 +737,7 @@ def test_partial_unaccrued_interest_payment(self): # loan_application = create_loan_application( # "_Test Company", self.applicant2, "Demand Loan", pledge # ) - # create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + # create_loan_security_assignment_from_loan_application(loan_application) # loan = create_demand_loan( # self.applicant2, "Demand Loan", loan_application, posting_date="2019-10-01" @@ -1294,7 +1294,7 @@ def create_secured_demand_loan(applicant, disbursement_amount=None): pledge = [{"loan_security": "Test Security 1", "qty": 4000.00}] loan_application = create_loan_application("_Test Company", applicant, "Demand Loan", pledge) - create_loan_security_assignment_from_loan_application_from_loan_application(loan_application) + create_loan_security_assignment_from_loan_application(loan_application) loan = create_demand_loan(applicant, "Demand Loan", loan_application, posting_date="2019-10-01") loan.submit()