I started a discussion about testing class-based (generic) views, a couple
of people have pitched in already, thought I'd throw this out there in case
anyone else can help:


It covers a couple of simple examples of views, where I refactor a
function-based view to a class-based view. Then there's an attempt to use
a CBGV for a moderately complicated use case (adding a new related item
model to an existing list), where we've struggled to make things look

cf the comments (randomly, on github, cf the post), but it's frustratingly
close to being a very simple CBGV use case with just one custom method, but
we haven't managed to make it work.. Maybe someone else will be able to
though? Also, any suggestions re: other approaches to testing are

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/166a3255-0945-41a4-8b00-6e22289d1bfe%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdjango-users @
categoriesdjango, python
postedOct 5, '13 at 9:49a
activeOct 5, '13 at 9:49a

1 user in discussion

Hjwp: 1 post



site design / logo © 2021 Grokbase