Help with testing of custom Django admin actions

53 views
Skip to first unread message

Derek

unread,
Apr 21, 2016, 9:46:25 AM4/21/16
to django-users
Hi

I am looking for help with writing tests for custom Django admin actions; both with and without intermediate pages (ones containing forms).

I confess (hangs head in shame) that I have written lots of actions, but not added any tests for these to my test suite.  It would be great if there were official docs for how to write tests (are there?) but, failing that, a link to some kind of "definitive" tutorial would be great.  Googling seems to produce lots of StackOverflow Q&A or snippets from personal blogs, but no fully worked / comprehensive examples.

Any help or Useful Pointers appreciated.

Thanks
Derek

Camilo Torres

unread,
Apr 23, 2016, 6:33:30 PM4/23/16
to Django users

Derek

unread,
Apr 24, 2016, 3:35:56 AM4/24/16
to django-users
Thanks; I understand the testing approach and its working well in other parts of my project. I was looking for something more specifically related to testing custom admin actions though.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/dJeQOB0bRKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/962972c3-61d4-44da-80cc-8825e0834d06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages