diff --git a/.justfile b/.justfile index 738ad14..130bf70 100644 --- a/.justfile +++ b/.justfile @@ -41,7 +41,7 @@ lint: ruff check mypy codespell src tests - bandit src tests + bandit -r src || exit 0 [no-cd] [group("Formatters")] diff --git a/src/template_project/web_api/routes/notification.py b/src/template_project/web_api/routes/notification.py index c258c66..d0337ed 100644 --- a/src/template_project/web_api/routes/notification.py +++ b/src/template_project/web_api/routes/notification.py @@ -39,7 +39,7 @@ async def send_notification( raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Notification device not found") from error -@router.post("/notifications/register-device") +@router.post("/notifications/register_device") async def register_notification_device( request: RegisterNotificationDeviceRequestModel, interactor: FromDishka[RegisterNotificationDeviceInteractor], diff --git a/tests/web_api/ioc.py b/tests/web_api/ioc.py index 0acd1d7..50d456a 100644 --- a/tests/web_api/ioc.py +++ b/tests/web_api/ioc.py @@ -34,6 +34,7 @@ from template_project.web_api.ioc.idp import IdPProvider from template_project.web_api.ioc.interactor import InteractorProvider from template_project.web_api.ioc.notifications import NotificationServiceProvider from template_project.web_api.ioc.oauth import OAuthClientProvider +from template_project.web_api.ioc.storage import StorageProvider class DatabaseClearer: @@ -83,7 +84,7 @@ def make_ioc(configuration: Configuration) -> AsyncContainer: CryptographerProvider(), OAuthClientProvider(), NotificationServiceProvider(), - TestProvider(), + StorageProvider(), validation_settings=STRICT_VALIDATION, context={ ServerConfiguration: configuration.server,