[Django] mixer ignores registered factories when default values present
- Dominant language
- Python
- Stars
- 953
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
It looks like `mixer` completely ignores any registered factories when default values are defined on the model
### Steps to Reproduce
```python
class MyModel(models.Model):
text = models.TextField(default="default")
mixer.register(MyModel, text="non-default")
assert mixer.blend(MyModel).text == "non-default" # this raises :/
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Django model and registration example from the issue, then trace the Django blending path where model defaults are handled. Confirm that a registered factory value takes precedence over the model default, and add or update coverage for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100