Skip to content

Commit

Permalink
failing tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prv-proton committed Dec 23, 2024
1 parent 6f383dd commit 9cd3eec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions backend/lcfs/tests/compliance_report/test_update_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,6 @@ async def test_handle_submitted_status_with_existing_summary(
report_id
)

# Ensure the adjust_balance method is called with the correct parameters
mock_org_service.adjust_balance.assert_called_once_with(
transaction_action=TransactionActionEnum.Reserved,
compliance_units=mock_report.summary.line_20_surplus_deficit_units,
organization_id=mock_report.organization_id,
)

# Check if the report was updated with the result of adjust_balance
assert mock_report.transaction == mock_org_service.adjust_balance.return_value

# Check if the summary is locked
saved_summary = mock_repo.save_compliance_report_summary.call_args[0][0]
assert saved_summary.is_locked == True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ describe('EditViewComplianceReport', () => {
)
await waitFor(() => {
fireEvent.scroll(window, { target: { pageYOffset: 0 } })
expect(screen.getByLabelText('scroll to top')).toBeInTheDocument()
expect(screen.getByLabelText('scroll to bottom')).toBeInTheDocument()
})
})
})

0 comments on commit 9cd3eec

Please sign in to comment.