Saturday, November 1, 2014

Django test discovery and RuntimeError: Conflicting 'entry_tags' models in application 'entries': and .

Hello!

I've written on that topic here:
http://stackoverflow.com/questions/26688775/django-cant-discover-tests-correctly

What I discovered is:
- unittest.loader ignores directories which are provided manually in settings to sys.path
- unittest.loader requires __init__.py in a directory to look there for tests

When __init__.py is in apps directory then I am getting a:
RuntimeError: Conflicting 'entry_tags' models in application 'entries': <class '  entries.models.Entry_tags'> and <class 'src.apps.entries.models.Entry_tags'>.

How do I resolve this?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/298a62b6-4655-463f-ad11-d06c3e1e8308%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment