implements bags, so we can pass arbitrary args/kwargs to functions.

This commit is contained in:
Romain Dorgueil
2016-12-25 12:40:28 +01:00
parent 9c4ec68b18
commit a3adb044bf
19 changed files with 151 additions and 120 deletions

View File

@ -4,6 +4,7 @@ from bonobo import inject, service
class MyFoo():
pass
def test_service_is_singleton():
@service
def foo():
@ -21,4 +22,3 @@ def test_service_is_singleton():
assert type(foo()) == type(foo2())
assert foo2() is not foo()