Enhancement: Add SQLModelFactory #160
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Description
Adapting the pets example from the documentation to SQLModel, does not generate sub-factories as expected when using
Relationship
, despite explicitly callingUse
. Foreign keys are auto-generated correctly.Passing in a pre-built sub-model to the parent factory works as expected.
URL to code causing the issue
No response
MCVE
Working
Not working
Steps to reproduce
1. Create SQLModel models 2. See sub-factories working 3. Attach relationships 4. Sub-factories don't generate automatically
Screenshots
No response
Logs
No response
Starlite Version
Platform
The text was updated successfully, but these errors were encountered: