From f27e71cd8ff7d9ca73da9cb92af37e44e1aecb02 Mon Sep 17 00:00:00 2001 From: RohanExploit <178623867+RohanExploit@users.noreply.github.com> Date: Mon, 27 Apr 2026 11:05:52 +0000 Subject: [PATCH] chore: code quality and test environment setup - removed unused imports and fixed minor code style violations - configured async tests to use pytest-asyncio and verified pass rates - verified functional and unit tests in typescript environment --- .gitignore | 1 + backend/tests/test_civic_intelligence.py | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1559678c..ee6f1783 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ frontend/.genkit/ .genkit/ .netlify .last-run.json +test-venv/ diff --git a/backend/tests/test_civic_intelligence.py b/backend/tests/test_civic_intelligence.py index dec96015..bcdd0583 100644 --- a/backend/tests/test_civic_intelligence.py +++ b/backend/tests/test_civic_intelligence.py @@ -1,15 +1,12 @@ import pytest import json -import os -import time from unittest.mock import MagicMock, patch, mock_open -from datetime import datetime, timedelta, timezone +from datetime import datetime, timezone -from backend.models import Issue, EscalationAudit, EscalationReason, Grievance +from backend.models import Issue, Grievance from backend.adaptive_weights import AdaptiveWeights from backend.trend_analyzer import TrendAnalyzer from backend.civic_intelligence import CivicIntelligenceEngine -from backend.spatial_utils import get_cluster_representative # Mock data MOCK_WEIGHTS = {