

def test_add_metrics(self, aggregator):
    '\n        Tests that add_metrics successfully adds an array of metrics to\n        the configured aggregator.\n        '
    now = 17
    metrics = [KeyValue('k', 1, now), Counter('j', 2)]
    Collector(aggregator)._add_metrics(metrics)
    assert (now == aggregator.metrics)

dataset/ETHPy150Open kiip/statsite/tests/unit/test_collector.py TestCollector.test_add_metrics/VarMisuse@50/98 `metrics`->`now`