Thursday, June 13, 2013

Registering Signal Receivers When Running Tests

Hi all,

I'm running into a problem registering signal receivers when running my tests using django-nose. If I run the tests on a specific app ('manage.py test <app_name>') everything works fine, but if I run the tests across the whole project ('manage.py test') none of my signal receivers get registered which causes numerous tests to fail. Does anyone have any guidance on why this might be happening or how to debug it?

In case it matters my project layout is as follows:

-project
-apps
-appname
signals.py
models.py
settings.py
manage.py

My signal receivers are in signals.py and are imported in models.py for registration purposes.

Thanks!
Andrew

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate