summaryrefslogtreecommitdiff
path: root/factory/containers.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2012-08-17 01:22:47 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2012-08-17 01:22:47 +0200
commit2611973bb62d38ff23471fdc115cdd09e351be50 (patch)
tree113cf3c40090b02d10f210ad20224cc40492f3dd /factory/containers.py
parent20515351bb0db936873db5dae133ea317050079d (diff)
downloadfactory-boy-2611973bb62d38ff23471fdc115cdd09e351be50.tar
factory-boy-2611973bb62d38ff23471fdc115cdd09e351be50.tar.gz
Add support for passing non-kwarg parameters to factories.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'factory/containers.py')
-rw-r--r--factory/containers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/containers.py b/factory/containers.py
index 6834f60..d50cb71 100644
--- a/factory/containers.py
+++ b/factory/containers.py
@@ -124,7 +124,7 @@ class DeclarationDict(dict):
return False
elif isinstance(value, declarations.OrderedDeclaration):
return True
- return (not name.startswith("_"))
+ return (not name.startswith("_") and not name.startswith("FACTORY_"))
def update_with_public(self, d):
"""Updates the DeclarationDict from a class definition dict.