Hi, > I wrote a django 'app', thats basically just a class that takes a > Queryset, some other information, and then outputs an HttpResponse > object (it does some other things too). How do I write unit tests for > this class? The app itself does not contain any models, yet the > functionality of the class depends on a model. The testing docs do not > mention anything about this.
If you define some models in your tests.py file they will be available (only) when you run your tests. -- Saygılarımla, Atamert Ölçgen -+- --+ +++ www.muhuk.com mu...@jabber.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.