Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 6a9370b

Browse files
committed
update typing
1 parent 692be10 commit 6a9370b

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

graphql_api/actions/measurements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def measurements_by_ids(
3838
)
3939

4040
# group by measurable_id
41-
measurements: Dict[int, List[Dict[str, Any]]] = {}
41+
measurements: Dict[Any, List[Dict[str, Any]]] = {}
4242
for measurement in queryset:
4343
measurable_id = measurement["measurable_id"]
4444
if measurable_id not in measurements:

timeseries/tests/test_helpers.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,26 @@ def test_no_dataset(self, trigger_backfill):
11791179
)
11801180
)
11811181
assert len(datasets) == 2
1182+
created_datasets = [
1183+
(
1184+
ds.repository_id,
1185+
ds.name,
1186+
ds.is_backfilled(),
1187+
)
1188+
for ds in datasets
1189+
]
1190+
1191+
assert (
1192+
self.repo1.pk,
1193+
MeasurementName.COVERAGE.value,
1194+
False,
1195+
) in created_datasets
1196+
assert (
1197+
self.repo2.pk,
1198+
MeasurementName.COVERAGE.value,
1199+
False,
1200+
) in created_datasets
1201+
11821202
try:
11831203
trigger_backfill.assert_called_once_with(datasets)
11841204
except AssertionError:

0 commit comments

Comments
 (0)