work in progress ...

This commit is contained in:
Romain Dorgueil
2016-12-09 08:01:04 +01:00
parent 854ef4e2bf
commit 90d3b6235b
24 changed files with 822 additions and 85 deletions

14
tests/core/test_stats.py Normal file
View File

@ -0,0 +1,14 @@
from bonobo.core.stats import WithStatistics
class MyThingWithStats(WithStatistics):
def get_stats(self, *args, **kwargs):
return (
('foo', 42),
('bar', 69),
)
def test_with_statistics():
o = MyThingWithStats()
assert o.get_stats_as_string() == 'foo=42 bar=69'