Skip to content

Commit

Permalink
refactored tests to use unittest methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nevoodoo committed Jun 7, 2024
1 parent c44ddde commit 2d5bc22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_ourdna_dashboard.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 2d5bc22

Please sign in to comment.