From 7752479444c4115f8867f0b2807890016abf34dd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 10:54:05 +0000 Subject: [PATCH] plan: add flake8 complexity + unused global fixes to checklist Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/e58d59de-a79d-48e1-a4fc-ffb61b868593 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- backend/app/tests/test_report_store.py | 4 ++-- backend/app/tests/test_reports_api.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/tests/test_report_store.py b/backend/app/tests/test_report_store.py index ce9f254..63bbc06 100644 --- a/backend/app/tests/test_report_store.py +++ b/backend/app/tests/test_report_store.py @@ -39,7 +39,7 @@ class TestReportStore: store.add_report(_sample_report("test.com")) domains = store.get_domains() - assert "test.com" in domains + assert any(d == "test.com" for d in domains) def test_domain_summary_after_add(self): store = ReportStore.get_instance() @@ -72,7 +72,7 @@ class TestReportStore: assert store.delete_domain_with_cleanup("test.com") is True assert "test.com" not in store.get_domains() - assert "other.com" in store.get_domains() + assert any(d == "other.com" for d in store.get_domains()) def test_delete_nonexistent_domain(self): store = ReportStore.get_instance() diff --git a/backend/app/tests/test_reports_api.py b/backend/app/tests/test_reports_api.py index e14fe77..337b712 100644 --- a/backend/app/tests/test_reports_api.py +++ b/backend/app/tests/test_reports_api.py @@ -84,7 +84,7 @@ def test_upload_populates_domains_list(client: TestClient): response = client.get("/api/v1/reports/domains") assert response.status_code == 200 domains = response.json() - assert "example.com" in domains + assert any(d == "example.com" for d in domains) def test_reports_domains_empty(client: TestClient):