Nicole,
If you can't access self.client of TestCase, you can always
allocate one yourself as:
c = Client()
See details in:
- http://www.dougalmatthews.com/2010/Jan/20/testing-your-first-django-app/
--Fred
------------------------------------------------------------------------
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
------------------------------------------------------------------------
On 1/22/15 4:08 AM, Nicole Harris wrote:
I just posted this on Stack Overflow and then realised I might have
more luck here.
Basically, I'd like to know if I can access self.client inside
setUpClass(cls) when setting up a Django test:
http://stackoverflow.com/questions/28084683/accessing-django-test-client-in-setupclass
If anybody has any insight on this, I'd really appreciate it :)
--
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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto: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/fb4e3cd7-a70a-4a7c-b61f-f6ef73d7e226%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/fb4e3cd7-a70a-4a7c-b61f-f6ef73d7e226%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscr...@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/54CAAB89.9020002%40bristle.com.
For more options, visit https://groups.google.com/d/optout.