diff --git a/src/backend-api/src/tests/base/test_sk_logic_base.py b/src/backend-api/src/tests/base/test_sk_logic_base.py index 594342b3..119d17fc 100644 --- a/src/backend-api/src/tests/base/test_sk_logic_base.py +++ b/src/backend-api/src/tests/base/test_sk_logic_base.py @@ -10,7 +10,6 @@ import importlib import sys import types -from typing import Type from unittest.mock import MagicMock import pytest diff --git a/src/frontend/src/components/batchHistoryPanel.tsx b/src/frontend/src/components/batchHistoryPanel.tsx index d180b78c..49fd10cb 100644 --- a/src/frontend/src/components/batchHistoryPanel.tsx +++ b/src/frontend/src/components/batchHistoryPanel.tsx @@ -1,6 +1,6 @@ import React, { useState, useEffect, useRef } from "react"; -import { useDispatch, useSelector } from 'react-redux'; +import { useDispatch } from 'react-redux'; import { Card, Spinner, Tooltip } from "@fluentui/react-components"; import { useNavigate } from "react-router-dom"; import ConfirmationDialog from "../commonComponents/ConfirmationDialog/confirmationDialogue"; diff --git a/src/processor/src/tests/unit/libs/application/test_application_context_extras.py b/src/processor/src/tests/unit/libs/application/test_application_context_extras.py index b51b8b2a..e121254c 100644 --- a/src/processor/src/tests/unit/libs/application/test_application_context_extras.py +++ b/src/processor/src/tests/unit/libs/application/test_application_context_extras.py @@ -118,7 +118,7 @@ async def _run(): def test_create_async_instance_with_callable_factory(): async def _run(): - ctx = AppContext().add_async_singleton(_AsyncSvc, lambda: _AsyncSvc()) + ctx = AppContext().add_async_singleton(_AsyncSvc, _AsyncSvc) a = await ctx.get_service_async(_AsyncSvc) assert isinstance(a, _AsyncSvc) assert a.entered is True @@ -151,7 +151,7 @@ async def _run(): def test_create_instance_with_factory_callable(): - ctx = AppContext().add_singleton(_S, lambda: _S()) + ctx = AppContext().add_singleton(_S, _S) a = ctx.get_service(_S) assert isinstance(a, _S) diff --git a/src/processor/src/tests/unit/services/test_queue_service_internals.py b/src/processor/src/tests/unit/services/test_queue_service_internals.py index 47a8d701..6ebe0cf1 100644 --- a/src/processor/src/tests/unit/services/test_queue_service_internals.py +++ b/src/processor/src/tests/unit/services/test_queue_service_internals.py @@ -189,7 +189,7 @@ async def _go(): try: await task except (asyncio.CancelledError, Exception): - pass + pass # Expected during task cancellation cleanup _run(_go())