From 83ae3e8371f8439e477060e397ce0ec0b41fd3ee Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 27 Sep 2023 18:04:07 +0100 Subject: [PATCH] more ruff fixes --- tests/test_app.py | 2 +- tests/test_celery.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_app.py b/tests/test_app.py index 96e88ea..c32c403 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -12,7 +12,7 @@ def test_app_config(): app.register_blueprint(user) app.register_blueprint(answer) app.register_blueprint(internal) - app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER = "inputs" + app.config["UPLOAD_FOLDER"] = "inputs" app.config["CELERY_BROKER_URL"] = settings.CELERY_BROKER_URL app.config["CELERY_RESULT_BACKEND"] = settings.CELERY_RESULT_BACKEND app.config["MONGO_URI"] = settings.MONGO_URI diff --git a/tests/test_celery.py b/tests/test_celery.py index d4b86b6..bfb6a35 100644 --- a/tests/test_celery.py +++ b/tests/test_celery.py @@ -1,5 +1,4 @@ -from celery import Celery -from unittest.mock import patch, MagicMock +from unittest.mock import patch from application.core.settings import settings from application.celery import make_celery