diff --git a/src/injection/providers/base_factory.py b/src/injection/providers/base_factory.py index 80d9478..21e12d9 100644 --- a/src/injection/providers/base_factory.py +++ b/src/injection/providers/base_factory.py @@ -58,5 +58,4 @@ def _resolve(self, *args: Any, **kwargs: Any) -> Union[T, Awaitable[T]]: """ final_args, final_kwargs = self._get_final_args_and_kwargs(*args, **kwargs) instance = self._factory(*final_args, **final_kwargs) - # return cast(Callable[P, T], instance) return instance diff --git a/tests/container_objects.py b/tests/container_objects.py index 6a5ab1c..4c2ae13 100644 --- a/tests/container_objects.py +++ b/tests/container_objects.py @@ -68,11 +68,6 @@ class Container(DeclarativeContainer): num = providers.Object(settings.provided.nested_settings.some_const) num2 = providers.Object(9402) callable_obj = providers.Callable(func, 1, c="string2", nums=num, d={"d": 500}) - # transient_obj = providers.Transient( - # Redis, - # port=settings.provided.redis_port, - # url=settings.provided.redis_url, - # ) coroutine_provider = providers.Coroutine(coroutine, arg1=1, arg2=2) diff --git a/tests/integration/test_drf/drf_test_project/settings.py b/tests/integration/test_drf/drf_test_project/settings.py index 73883fa..334cf5d 100644 --- a/tests/integration/test_drf/drf_test_project/settings.py +++ b/tests/integration/test_drf/drf_test_project/settings.py @@ -1,6 +1,5 @@ from pathlib import Path -# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.integration.test_drf.drf_test_project.settings') BASE_DIR = Path(__file__).resolve().parent SECRET_KEY = "django-insecure-u20tyumpwc)g21=fjy5nl9u@ih!28()dfvwr4%#cigz$ktop@^" # noqa: S105 diff --git a/tests/integration/test_litestar/test_integration.py b/tests/integration/test_litestar/test_integration.py index f7c250e..2836501 100644 --- a/tests/integration/test_litestar/test_integration.py +++ b/tests/integration/test_litestar/test_integration.py @@ -3,7 +3,6 @@ from litestar.di import Provide from litestar.testing import TestClient -# from injection import Provide from tests.container_objects import Container, Redis