hi everybody, I need to test how my models work outside the browser, with
unit tests but one of my models had an attribute "created_by" representing
the user who created it. Right now I'm using "ThreadLocals" middleware to
get the current user outside views but I don't know how can I test it in
other places other than the browser?

-- 
Lic. José M. Rodriguez Bacallao
Cupet
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic por
profesionales
-----------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

  • test models Lic. José M. Rodriguez Bacallao

Reply via email to