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

[Django] mixer ignores registered factories when default values present #137

Open
rvinzent opened this issue Apr 8, 2021 · 0 comments
Open

Comments

@rvinzent
Copy link

rvinzent commented Apr 8, 2021

It looks like mixer completely ignores any registered factories when default values are defined on the model

Steps to Reproduce

class MyModel(models.Model):
    text = models.TextField(default="default")

mixer.register(MyModel, text="non-default")
assert mixer.blend(MyModel).text == "non-default"  # this raises :/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant