learning-unlimited/ESP-Website — comment on commit 5e40a31a7502caef1c20235f2eaf94e1e33c368d
File: esp/esp/qsd/seltests.py line 40
By gkanwar:

Thank you! That's a lot of useful information.

Re caching: I tried setting the caching to dummy:// earlier and it still had the same issue. Just to double check, I tried again changing CACHE_BACKEND in settings.py and aws_settings.py to "dummy://" just now, and I still got the same IntegrityError.

The TransactionTestCase makes much more sense now. I can see why psql would not tell me anything about what's going on inside the code. Is there any good way to dump the datatree_datatree table to stdout from within the code? I suppose I could just run an SQL command from within the python? Would running this SQL avoid any caching even if some was in place (as opposed to, say, DataTree.objects.all())?