summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
Diffstat (limited to 'factory')
-rw-r--r--factory/__init__.py1
-rw-r--r--factory/declarations.py14
2 files changed, 0 insertions, 15 deletions
diff --git a/factory/__init__.py b/factory/__init__.py
index 4b4857c..adcf9c9 100644
--- a/factory/__init__.py
+++ b/factory/__init__.py
@@ -55,7 +55,6 @@ from .declarations import (
SelfAttribute,
ContainerAttribute,
SubFactory,
- CircularSubFactory,
PostGeneration,
PostGenerationMethodCall,
RelatedFactory,
diff --git a/factory/declarations.py b/factory/declarations.py
index 1f64038..b3c9d6a 100644
--- a/factory/declarations.py
+++ b/factory/declarations.py
@@ -325,20 +325,6 @@ class SubFactory(ParameteredAttribute):
return subfactory.build(**params)
-class CircularSubFactory(SubFactory):
- """Use to solve circular dependencies issues."""
- def __init__(self, module_name, factory_name, **kwargs):
- factory = '%s.%s' % (module_name, factory_name)
- warnings.warn(
- "factory.CircularSubFactory is deprecated and will be removed in "
- "the future. "
- "Please replace factory.CircularSubFactory('module', 'symbol') "
- "with factory.SubFactory('module.symbol').",
- PendingDeprecationWarning, 2)
-
- super(CircularSubFactory, self).__init__(factory, **kwargs)
-
-
class PostGenerationDeclaration(object):
"""Declarations to be called once the target object has been generated.