Changes between Initial Version and Version 1 of Ticket #29225


Ignore:
Timestamp:
Mar 15, 2018, 3:35:49 PM (6 years ago)
Author:
gh720
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29225 – Description

    initial v1  
    1212{{{ DATABASES['default'] = DATABASES['sqlite1'] }}} .
    1313
    14 And now there is a funny piece of code
     14And now there is a funny piece of code, which is a part of the teardown procedure:
    1515{{{
    1616https://github.com/django/django/blob/master/django/db/backends/base/creation.py
     
    2424Suppose we run a test.
    2525In case of in-memory sqlite testing the "url" of in-memory database (something like {{{ file:memorydb_sqlite?mode=memory&cache=shared }}} gets replaced with the real sqlite db file path by the code above.
     26The teardown procedure is repeated for every database config we have.
    2627Guess what happens in the second iteration?
    2728Real sqlite db is destroyed.
Back to Top