You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
454 B

from tildes.metrics import _COUNTERS, _HISTOGRAMS
def test_all_metric_names_prefixed():
"""Ensure all metric names have the 'tildes_' prefix."""
for metric_dict in (_COUNTERS, _HISTOGRAMS):
metrics = metric_dict.values()
for metric in metrics:
# this is ugly, but seems to be the "generic" way to get the name
metric_name = metric.describe()[0].name
assert metric_name.startswith("tildes_")