Skip to content

Commit

Permalink
Lint and test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-barraza committed Dec 4, 2023
1 parent bb0ccdd commit 01aa77e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/resources/v1/non_sufficient_funds.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_non_sufficient_funds(account_id: str):
page: int = int(request.args.get('page', '1'))
limit: int = int(request.args.get('limit', '10'))
response, status = NonSufficientFundsService.find_all_non_sufficient_funds_invoices(account_id=account_id,
page=page,
page=page,
limit=limit), HTTPStatus.OK
current_app.logger.debug('>get_non_sufficient_funds')
return jsonify(response), status
2 changes: 1 addition & 1 deletion pay-api/tests/unit/api/test_non_sufficient_funds.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_get_non_sufficient_funds(session, client, jwt, app):
fee_schedule = FeeSchedule.find_by_filing_type_and_corp_type('CP', 'OTANN')
factory_payment_line_item(invoice.id, fee_schedule_id=fee_schedule.fee_schedule_id, description='NSF',
total=100)
factory_invoice_reference(invoice.id, invoice_id=invoice.id, invoice_number=invoice_number).save()
factory_invoice_reference(invoice_id=invoice.id, invoice_number=invoice_number).save()
factory_non_sufficient_funds(invoice_id=invoice.id, description='NSF').save()

auth_account_id = PaymentAccount.find_by_id(payment_account.id).auth_account_id
Expand Down
2 changes: 1 addition & 1 deletion pay-api/tests/unit/services/test_non_sufficient_funds.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_find_all_non_sufficient_funds_invoices(session):
fee_schedule = FeeSchedule.find_by_filing_type_and_corp_type('CP', 'OTANN')
factory_payment_line_item(invoice.id, fee_schedule_id=fee_schedule.fee_schedule_id, description='NSF',
total=100)
factory_invoice_reference(invoice.id, invoice_id=invoice.id, invoice_number=invoice_number).save()
factory_invoice_reference(invoice_id=invoice.id, invoice_number=invoice_number).save()
factory_non_sufficient_funds(invoice_id=invoice.id, description='NSF').save()

non_sufficient_funds = NonSufficientFundsService.find_all_non_sufficient_funds_invoices(
Expand Down

0 comments on commit 01aa77e

Please sign in to comment.