-
Notifications
You must be signed in to change notification settings - Fork 348
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
Add support for testing unmanaged models #270
Conversation
Ok, there is something weird going on. Looks like tests marked with Here's an example of "passing" test |
Let's keep the PR open.. |
Thanks! |
Hi. I don't understand py.test well enough to work out why Mark with: And then in _django_use_model(), fetch the model(s) like this: |
Closing this in favor of #310. |
working code from timb07@176ac9f see pytest-dev#270
As per #264.
This is marker pytest.mark.django_use_model that allows testing of models that have
Meta.managed = False