From 2611973bb62d38ff23471fdc115cdd09e351be50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Fri, 17 Aug 2012 01:22:47 +0200 Subject: Add support for passing non-kwarg parameters to factories. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Barrois --- factory/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'factory/containers.py') 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. -- cgit v1.2.3