This commit is contained in:
Florian Sesser 2021-09-10 13:15:56 +00:00
parent 6c18983f7b
commit 339e1747e7

View File

@ -108,8 +108,10 @@ class OpenMetrics(unittest.TestCase):
metrics = Statistics.render_OPENMETRICS(stats, req) metrics = Statistics.render_OPENMETRICS(stats, req)
# "The content type MUST be..." # "The content type MUST be..."
req.setHeader.assert_called_with("content-type", "application/openmetrics-text; version=1.0.0; charset=utf-8") req.setHeader.assert_called_with(
"content-type", "application/openmetrics-text; version=1.0.0; charset=utf-8"
)
# The parser throws if it can't parse. # The parser throws if it does not like its input.
# Wrap in a list() to drain the generator. # Wrapped in a list() to drain the generator.
families = list(parser.text_string_to_metric_families(metrics)) families = list(parser.text_string_to_metric_families(metrics))