Changes between Initial Version and Version 1 of Ticket #33356


Ignore:
Timestamp:
Dec 10, 2021, 8:59:50 PM (3 years ago)
Author:
Dylan Yung
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33356 – Description

    initial v1  
    11There's some weird internal Django bug with views that use "transaction.atomic()" if you ping that view with multiple TestCase a weird bug will happen where there's a DB check at the end of tests after the DB has been torn down. I made 2 StackOverflow posts regarding this issue and found the fix as well. Hopefully there'll be an internal fix.
     2
     3Because Django tests the db transaction processing mechanism, the real test part is finish and success, and then it will rollback the data(data flush),so some db level check is no use and misleading.
     4
     5so we need modify the foreign key check defer to make it get right result.
    26
    37https://stackoverflow.com/questions/70105907/django-full-test-suite-failing-when-adding-a-testcase-but-full-test-suite-pas/70312267#70312267
Back to Top