work in progress ...
This commit is contained in:
14
tests/core/test_stats.py
Normal file
14
tests/core/test_stats.py
Normal 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'
|
||||
Reference in New Issue
Block a user