Skip to content
New issue

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

Introduce factory.declaration.Transformer #623

Merged

Commits on Feb 12, 2021

  1. Introduce factory.declaration.Transformer

    Transforms a value using provided `transform` function. Values coming
    from the declaration and values overridden through keywords arguments
    are transformed before the generated object attribute is set.
    
    Removes the need to save objects with a post generation hook twice to
    the database.
    
    Facilitates overriding Django passwords when instantiating the factory.
    
    Fixes FactoryBoy#316
    Fixes FactoryBoy#366
    francoisfreitag committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    6003305 View commit details
    Browse the repository at this point in the history