summaryrefslogtreecommitdiff
path: root/tests/test_using.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_using.py')
-rw-r--r--tests/test_using.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_using.py b/tests/test_using.py
index d1e4262..a93c968 100644
--- a/tests/test_using.py
+++ b/tests/test_using.py
@@ -472,9 +472,9 @@ class SubFactoryTestCase(unittest.TestCase):
foo = 30
side_a = factory.SubFactory(SideAFactory,
- inner_from_a__a=factory.LazyContainerAttribute(lambda obj, containers: containers[1].foo * 2))
+ inner_from_a__a=factory.ContainerAttribute(lambda obj, containers: containers[1].foo * 2))
side_b = factory.SubFactory(SideBFactory,
- inner_from_b=factory.LazyContainerAttribute(lambda obj, containers: containers[0].side_a.inner_from_a))
+ inner_from_b=factory.ContainerAttribute(lambda obj, containers: containers[0].side_a.inner_from_a))
outer = OuterMostFactory.build()
self.assertEqual(outer.foo, 30)