Show we can retrieve the only statistic recorded.
()
| 89 | |
| 90 | |
| 91 | def test_statistics_for_single_record(): |
| 92 | """Show we can retrieve the only statistic recorded.""" |
| 93 | aggregator = stats.Statistics() |
| 94 | assert list(aggregator.statistics_for("E")) == [] |
| 95 | aggregator.record(make_error()) |
| 96 | statistics = list(aggregator.statistics_for("E")) |
| 97 | assert len(statistics) == 1 |
| 98 | assert isinstance(statistics[0], stats.Statistic) |
| 99 | |
| 100 | |
| 101 | def test_statistics_for_filters_by_filename(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…