Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Add instructions on how to add test-only models #129

Open
bmispelon opened this issue Jul 28, 2016 · 1 comment
Open

Add instructions on how to add test-only models #129

bmispelon opened this issue Jul 28, 2016 · 1 comment

Comments

@bmispelon
Copy link

I was trying to use some models only for my tests and it took me a while to figure it out.

In the end, I managed to do it by adding 'tests' to the INSTALLED_APPS in runtests.py. I'm not sure if that's the best way to go about it but it does seem to work in my case.

@jonathan-s
Copy link
Collaborator

Do you think you could explain what you mean with models only for tests? Do you mean an example app that uses the models in the real django app?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants