Changes between Initial Version and Version 1 of Ticket #29225
- Timestamp:
- Mar 15, 2018, 3:35:49 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29225 – Description
initial v1 12 12 {{{ DATABASES['default'] = DATABASES['sqlite1'] }}} . 13 13 14 And now there is a funny piece of code 14 And now there is a funny piece of code, which is a part of the teardown procedure: 15 15 {{{ 16 16 https://github.com/django/django/blob/master/django/db/backends/base/creation.py … … 24 24 Suppose we run a test. 25 25 In 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. 26 The teardown procedure is repeated for every database config we have. 26 27 Guess what happens in the second iteration? 27 28 Real sqlite db is destroyed.