◄ ► | Muuda | Home | Admin | en de fr et | Sign in

#3975 (test_ipdict.py fails when not run alone)

by Luc Saffre · in Developers · assigned to Luc Saffre

Kokkuvõte

Children

Kommentaarid

  • 5 aastat, 8 kuud ago by Luc Saffre about #3975 (test_ipdict.py fails when not run alone) : Bua, what an avalanche of changes in the test suites! But it was time to tidy up and while I was there I couldn't hold back from doing some optimizations there.
  • 5 aastat, 8 kuud ago by Luc Saffre about #3975 (test_ipdict.py fails when not run alone) : So it seems that the Django tests in the demo projects (= run using "manage.py test" from a demo project directory, not using "setup.py test" from the repository root) actually never use the database that has been prepared with "pm prep". I thought that the WebIndexTestCase does this. But seems tha...
  • 5 aastat, 8 kuud ago by Luc Saffre about #3975 (test_ipdict.py fails when not run alone) : When I say "go lydia" and "pm test -v3", I get verbose messages about what's going on. But I still don't understand why test_ipdict uses the demo database when run alone, and a temporary database when run together with others...
  • 5 aastat, 8 kuud ago by Luc Saffre about #3975 (test_ipdict.py fails when not run alone) : Yes, the [url docs.djangoproject.com/en/3.1/topics/testing/overview/ Django docs clearly warn] about this: "If your tests rely on database access such as creating or querying models, be sure to create your test classes as subclasses of django.test.TestCase rather than unittest.TestCase." I thought t...
  • 5 aastat, 8 kuud ago by Luc Saffre about #3975 (test_ipdict.py fails when not run alone) : In demo project lydia, "pm test tests.test_ipdict" passes, but "pm test" fails. Which indicates that test_ipdict.py somehow depends on the other test cases.