Hi Heather, What is it you are testing? I have had issues with this kind of thing when testing forms that are programatically changing dropdown list / default values.
Dan On 5 July 2018 at 14:24, <clavierpla...@gmail.com> wrote: > Hello, I'm simplifying a previous post. I just started using Django a few > months ago, and for some reason I'm still having trouble getting my mind > around the way Django thinks about some things. > > I have a test class that contains two specific tests that always pass when > run just by themselves, but always fail when run with the rest of the test > class. > > One of the tests in particular is very puzzling, because I can step > through the entire method under test and watch everything happen exactly > the way it should--the database field values are changed correctly and the > correct values are returned. But after the return statement, the values are > different than they were before the return statement. They are consistently > different, so *something* is happening behind the scenes... but I have no > idea what... So I can't tell if my tests are flawed or if my code under > test is flawed. > > Django 2.0 with MS SQL Server 2014. Any suggestions at all appreciated, > because I'm completely out of ideas. I haven't been able to get > TransactionTestCase to work at all, though--set-up data that works > flawlessly with TestCase breaks TransactionTestCase, and I don't know why. > > Thank you! > Heather > > -- > 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 https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/72497524-6c76-41de-ba70-a5b0996335dd%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/72497524-6c76-41de-ba70-a5b0996335dd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Wildman and Herring Limited, Registered Office: 28 Brock Street, Bath, United Kingdom, BA1 2LN, Company no: 05766374 -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPZHCY5UPA79U1N%2Bkk6XzqvejjdXuzh73tzBi-pQNMPPqpx8ZA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.