implements bags, so we can pass arbitrary args/kwargs to functions.
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user