From c1657a01a77ca6b914bc21a20a42aeb924de8254 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Mar 2026 09:23:07 +0000 Subject: [PATCH] style: apply ruff auto-fix - Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] --- tests/test_notifications_api.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tests/test_notifications_api.py b/tests/test_notifications_api.py index 98c56348..9396db13 100644 --- a/tests/test_notifications_api.py +++ b/tests/test_notifications_api.py @@ -831,11 +831,13 @@ class TestUserNotificationService: result = _send_email_notification({"smtp_host": "smtp.example.com"}, "Title", "Body") assert result is False + class TestBenchmark: @pytest.mark.unit def test_update_preferences_benchmark(self, notif_engine, notif_session): - import time import statistics + import time + from app.main import app target = UserNotificationTarget( @@ -853,12 +855,14 @@ class TestBenchmark: items_count = 100 preferences = [] for i in range(items_count): - preferences.append({ - "event_type": f"event.type.{i}", - "channel_type": "webhook", - "is_enabled": True, - "target_id": target.id, - }) + preferences.append( + { + "event_type": f"event.type.{i}", + "channel_type": "webhook", + "is_enabled": True, + "target_id": target.id, + } + ) payload = {"preferences": preferences}