#36496: SQLite test database path not recognised when running tests in parallel
-----------------------------------+------------------------------------
     Reporter:  Damian Posener     |                    Owner:  (none)
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  5.2
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Comment (by abhishek1999):

 I tried this:

 {{{
 DATABASES = {
     "default": {
         "ENGINE": "django.db.backends.sqlite3",
         "NAME": BASE_DIR / "db" / "default" / "db.sqlite3",
         "TEST": {
             "NAME": BASE_DIR / "db" / "default" / "test_db.sqlite3",
         },
     },
     "other": {
         "ENGINE": "django.db.backends.sqlite3",
         "NAME": BASE_DIR / "db" / "other" / "db.sqlite3",
         "TEST": {
             "NAME": BASE_DIR / "db" / "other" / "test_db.sqlite3",
         },
     },
 }
 }}}

 I added `['TEST']['NAME']` to keep test DB files in separate folders.
 I ran:

 {{{
 python manage.py test --parallel=auto --keepdb
 }}}
 I got this error:

 {{{
 sqlite3.OperationalError: unable to open database file
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36496#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070197f07f8a0d-ee57e34f-308f-4739-b89e-d1cb2b39edf2-000000%40eu-central-1.amazonses.com.

Reply via email to