summary refs log tree commit diff
path: root/tests/metrics/test_metric.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-06 15:28:06 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:51 +0000
commitf9478e475bf645038b4f1f163240d7fd0ec02af0 (patch)
tree8f3111db53f48e2918b98b372c7436270846931b /tests/metrics/test_metric.py
parentProvide some process resource usage metrics (diff)
downloadsynapse-f9478e475bf645038b4f1f163240d7fd0ec02af0.tar.xz
Rename Metrics' "keys" to "labels"
Diffstat (limited to '')
-rw-r--r--tests/metrics/test_metric.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/metrics/test_metric.py b/tests/metrics/test_metric.py
index b25520821d..fefe1a5867 100644
--- a/tests/metrics/test_metric.py
+++ b/tests/metrics/test_metric.py
@@ -43,7 +43,7 @@ class CounterMetricTestCase(unittest.TestCase):
         ])
 
     def test_vector(self):
-        counter = CounterMetric("vector", keys=["method"])
+        counter = CounterMetric("vector", labels=["method"])
 
         # Empty counter doesn't yet know what values it has
         self.assertEquals(counter.render(), [])
@@ -83,7 +83,7 @@ class CallbackMetricTestCase(unittest.TestCase):
     def test_vector(self):
         vals = dict()
 
-        metric = CallbackMetric("values", lambda: vals, keys=["type"])
+        metric = CallbackMetric("values", lambda: vals, labels=["type"])
 
         self.assertEquals(metric.render(), [])
 
@@ -115,7 +115,7 @@ class TimerMetricTestCase(unittest.TestCase):
         ])
 
     def test_vector(self):
-        metric = TimerMetric("queries", keys=["verb"])
+        metric = TimerMetric("queries", labels=["verb"])
 
         self.assertEquals(metric.render(), [])