mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
clean up
This commit is contained in:
parent
6c18983f7b
commit
339e1747e7
@ -108,8 +108,10 @@ class OpenMetrics(unittest.TestCase):
|
||||
metrics = Statistics.render_OPENMETRICS(stats, req)
|
||||
|
||||
# "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.
|
||||
# Wrap in a list() to drain the generator.
|
||||
# The parser throws if it does not like its input.
|
||||
# Wrapped in a list() to drain the generator.
|
||||
families = list(parser.text_string_to_metric_families(metrics))
|
||||
|
Loading…
Reference in New Issue
Block a user