From 069263c23f03344f9b0c0d946e5568826e6dda7e Mon Sep 17 00:00:00 2001
From: Dantali0n <info@dantalion.nl>
Date: Wed, 10 Aug 2022 09:35:47 +0200
Subject: [PATCH] L2SS-845: Fix black linting

---
 lofar_station_client/requests/prometheus.py | 2 +-
 tests/requests/test_prometheus.py           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lofar_station_client/requests/prometheus.py b/lofar_station_client/requests/prometheus.py
index 192cb90..0c61ace 100644
--- a/lofar_station_client/requests/prometheus.py
+++ b/lofar_station_client/requests/prometheus.py
@@ -213,7 +213,7 @@ class PrometheusRequests:
 
         def ord_index(metric: dict) -> Tuple[str]:
             """Generate the ordered dict index from json metric"""
-            return (metric['x'], metric['y'])
+            return (metric["x"], metric["y"])
 
         result_dict = OrderedDict()
         for json_result in json_results:
diff --git a/tests/requests/test_prometheus.py b/tests/requests/test_prometheus.py
index 94cc0ea..e38d806 100644
--- a/tests/requests/test_prometheus.py
+++ b/tests/requests/test_prometheus.py
@@ -301,7 +301,7 @@ class PrometheusTest(base.TestCase):
 
         for result in reference_data["data"]["result"]:
             metric = result["metric"]
-            index = (metric['x'], metric['y'])
+            index = (metric["x"], metric["y"])
 
             result_dict_timestamps = [
                 result[0] for result in result_dict[index]["values"]
-- 
GitLab