summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-11 22:30:45 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-11 22:30:45 +0100
commit16e1a65f5b93615d946b74e3fb4d0b61c99ae0d2 (patch)
treee5ca942c8ec37401e96f1fca9a1edde94ec5e1c0 /factory
parentde3a552eab032cb980a2fb78976fc3dc8cd5f1c8 (diff)
downloadfactory-boy-16e1a65f5b93615d946b74e3fb4d0b61c99ae0d2.tar
factory-boy-16e1a65f5b93615d946b74e3fb4d0b61c99ae0d2.tar.gz
Remove CircularSubFactory.
Replace CircularSubFactory('module', 'symbol') with SubFactory('module.symbol').
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.