rbarrois/factory_boy — pull request #4 by carljm (2012-01-11 21:21:15+00:00)
Title: Allow public classmethods on factories.

Currently, a public (not beginning with _) classmethod declared on a factory is hoovered up into the DeclarationDict and is not actually available as a classmethod on the factory. This is quite surprising when you run into it, and although I can understand how the current implementation came to exist, I don't think it needs to be that way. It's useful to be able to define alternate "create" classmethods on a Factory, to create objects based on a higher-level model-specific API, and there's no reason why a classmethod (that isn't decorated to be an OrderedDeclaration) should be pulled off the class and into the DeclarationDict.

This pull request fixes that issue and makes it possible to declare custom public classmethods on a factory.