How do you approach unit testing for pluggable apps?
20 views
Skip to first unread message
Nan
unread,
Dec 21, 2015, 3:14:20 PM12/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
So far I usually just build a sample project that also serves as a demonstration of how to use the pluggable app, and use `manage.py test` to run the tests inside the pluggable apps test module. Is this the preferred method? Should a pluggable app's tests stand alone and be runnable outside of project context? If so, how would you handle testing operations that require database access?