We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://gist.github.com/3002546 :
This should work:
class MyFactory(factory.Factory): foo = { 'a': factory.InfiniteIterator([1, 2, 3]), }
A good implementation would be:
class MyFactory(factory.Factory): foo = factory.DictFactory(a=factory.InfiniteIterator([1, 2, 3])) bar = factory.DictFactory({ 'a': factory.InfiniteIterator([1, 2, 3]), })
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
We used the following which seems to work ok:
class DictFactory(factory.Factory): ABSTRACT_FACTORY = True _creation_function = (lambda self, **kwargs: kwargs,)
But that required a FACTORY_FOR = None on every factory
On every factory ? Some example ?
2b661e6
No branches or pull requests
See https://gist.github.com/3002546 :
This should work:
A good implementation would be:
The text was updated successfully, but these errors were encountered: