feat: new alternate syntax and switch to black + isort (yeah, maybe not the best time, but that is done).
This commit is contained in:
@ -3,12 +3,9 @@ from bonobo.util.statistics import WithStatistics
|
||||
|
||||
class MyThingWithStats(WithStatistics):
|
||||
def get_statistics(self, *args, **kwargs):
|
||||
return (
|
||||
('foo', 42),
|
||||
('bar', 69),
|
||||
)
|
||||
return (("foo", 42), ("bar", 69))
|
||||
|
||||
|
||||
def test_with_statistics():
|
||||
o = MyThingWithStats()
|
||||
assert o.get_statistics_as_string() == 'foo=42 bar=69'
|
||||
assert o.get_statistics_as_string() == "foo=42 bar=69"
|
||||
|
||||
Reference in New Issue
Block a user