Hi,

Am seeing that test case in suite are failing but passing when ran 
individually.
I have gone through most of the thread on the internet but did not find any 
solution.

Below is the snip of what am trying to do.

class A(TestCase):
  def test_a():
   create an obj in db
   retrive obj list from db and check the length of the list (should be 1)
   update same obj in db
   delte same obj in db

 def b():
  create an obj in db and check the length.

When ran in suite test_a fails as the length of the list is 2.
test_b() runs before test_a and leave the object in the database.

>From various threads suggested using 'django.test import TestCase' 
instead of 'from django.unittest import TestCase' which am already doing.

Is there anything else i need to do here ?

-- 
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/a142d7fb-7865-4d6c-9a96-671a4c62a550%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to