Description
When defining a transformer within a trait, then overriding that value, the transform is not applied.
To Reproduce
See code example below
Model / Factory code
import factory
class FooFactory(factory.StubFactory):
foo = factory.Transformer(123, transform=hex)
class Params:
string = factory.Trait(foo=factory.Transformer(234, transform=str))
if __name__ == '__main__':
print(FooFactory(foo=345).__dict__) # {'foo': 345}
Description
When defining a transformer within a trait, then overriding that value, the transform is not applied.
To Reproduce
See code example below
Model / Factory code