Closed willkg closed 3 years ago
@jwhitlock This will show something like this when there's an assertion failure and you're using one of the assert_
helpers in MetricsMock
:
---------------------------------------------------- Captured stdout call ------------------------------------------------------
('histogram', 'foobar.key1', 1, [])
('histogram', 'foobar.keymultiple', 1, [])
('histogram', 'foobar.keymultiple', 1, [])
('histogram', 'foobar.key1', 1, [])
('histogram', 'foobar.keymultiple', 1, [])
('histogram', 'foobar.keymultiple', 1, [])
What do you think? Do you think it's clear what it is? If not, what would better output look like?
Thank you for looking at it!
After looking at the output, I think I want to fix the output by changing how print_records()
works. Then I'll land this.
If you're using one of the
assert_*
helper methods onMetricsMock
and the assertion fails, then this will make it print the metrics records that were captured.Fixes #74