Refactoring: dispatch "core" package modules into structs and utils, as it does not have a lot of sense anymore.

This commit is contained in:
Romain Dorgueil
2017-05-20 13:11:37 +02:00
parent a018cca20e
commit 4342035f12
6 changed files with 4 additions and 5 deletions

View File

@ -0,0 +1,11 @@
from bonobo.util.statistics import WithStatistics
class MyThingWithStats(WithStatistics):
def get_statistics(self, *args, **kwargs):
return (('foo', 42), ('bar', 69), )
def test_with_statistics():
o = MyThingWithStats()
assert o.get_statistics_as_string() == 'foo=42 bar=69'