From 2d5bc22e5dc2d54a9975587a93b3d95182c80b59 Mon Sep 17 00:00:00 2001 From: Yash Pankhania Date: Fri, 7 Jun 2024 16:01:18 +1000 Subject: [PATCH] refactored tests to use unittest methods --- test/test_ourdna_dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_ourdna_dashboard.py b/test/test_ourdna_dashboard.py index 64eb6a617..a21bbae26 100644 --- a/test/test_ourdna_dashboard.py +++ b/test/test_ourdna_dashboard.py @@ -1,4 +1,4 @@ -from collections import OrderedDict, defaultdict +from collections import defaultdict from datetime import datetime from math import ceil from test.testbase import DbIsolatedTest, run_as_sync @@ -235,7 +235,7 @@ async def test_processing_times_per_site(self): self.assertTrue(processing_times_by_site) self.assertIsInstance(processing_times_by_site, dict) - sample_tally: dict[str, dict[int, int]] = OrderedDict() + sample_tally: dict[str, dict[int, int]] = defaultdict() for sample in self.sample_external_objects: assert isinstance(sample.meta, dict) processing_site = sample.meta.get('processing-site', 'Unknown')