mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
0.3.1 release
This commit is contained in:
parent
1192557e1b
commit
333f2db979
|
@ -299,6 +299,8 @@ Catalog.object_a.in_scope()
|
||||||
object_a5 = Catalog.object_a()
|
object_a5 = Catalog.object_a()
|
||||||
object_a6 = Catalog.object_a()
|
object_a6 = Catalog.object_a()
|
||||||
|
|
||||||
|
Catalog.object_a.out_of_scope()
|
||||||
|
|
||||||
assert object_a5 is object_a6
|
assert object_a5 is object_a6
|
||||||
assert object_a5.db is object_a6.db
|
assert object_a5.db is object_a6.db
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ Catalog.object_a.in_scope()
|
||||||
object_a5 = Catalog.object_a()
|
object_a5 = Catalog.object_a()
|
||||||
object_a6 = Catalog.object_a()
|
object_a6 = Catalog.object_a()
|
||||||
|
|
||||||
|
Catalog.object_a.out_of_scope()
|
||||||
|
|
||||||
assert object_a5 is object_a6
|
assert object_a5 is object_a6
|
||||||
assert object_a5.db is object_a6.db
|
assert object_a5.db is object_a6.db
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user