mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-16 19:40:59 +03:00
Temporary disable factory sublcass performance test
This commit is contained in:
parent
0b836b8712
commit
bb4ad5eb62
|
@ -117,33 +117,33 @@ class Tester(object):
|
||||||
for x in xrange(int(5000000 * self.duration_factor)):
|
for x in xrange(int(5000000 * self.duration_factor)):
|
||||||
test_factory()
|
test_factory()
|
||||||
|
|
||||||
def test_factory_subcls_3_factory_subcls_kw_injections(self, providers):
|
# def test_factory_subcls_3_factory_subcls_kw_injections(self, providers):
|
||||||
"""Test factory with 3 keyword argument injections via factories."""
|
# """Test factory with 3 keyword argument injections via factories."""
|
||||||
class MyFactory(providers.Factory):
|
# class MyFactory(providers.Factory):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
class A(object):
|
# class A(object):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
class B(object):
|
# class B(object):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
class C(object):
|
# class C(object):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
class Test(object):
|
# class Test(object):
|
||||||
def __init__(self, a, b, c):
|
# def __init__(self, a, b, c):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
a_factory = MyFactory(A)
|
# a_factory = MyFactory(A)
|
||||||
b_factory = MyFactory(B)
|
# b_factory = MyFactory(B)
|
||||||
c_factory = MyFactory(C)
|
# c_factory = MyFactory(C)
|
||||||
test_factory = MyFactory(Test,
|
# test_factory = MyFactory(Test,
|
||||||
a=a_factory,
|
# a=a_factory,
|
||||||
b=b_factory,
|
# b=b_factory,
|
||||||
c=c_factory)
|
# c=c_factory)
|
||||||
for x in xrange(int(5000000 * self.duration_factor)):
|
# for x in xrange(int(5000000 * self.duration_factor)):
|
||||||
test_factory()
|
# test_factory()
|
||||||
|
|
||||||
# def test_singleton(self, providers):
|
# def test_singleton(self, providers):
|
||||||
# """Test factory with 3 keyword argument injections via factories."""
|
# """Test factory with 3 keyword argument injections via factories."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user