#2879: Add live test server support to test framework
-------------------------------------+-------------------------------------
     Reporter:  Mikeal Rogers        |                    Owner:  devin
  <mikeal@…>                         |                   Status:  new
         Type:  New feature          |                  Version:
    Component:  Testing framework    |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  1
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by tomchristie):

 Made a start on some extra tests...

 {{{
 ./runtests.py --settings=test_sqlite live_server_tests
 }}}

 1. As mentioned media files not served when `MEDIA_URL` and `MEDIA_ROOT`
 set. (`test_media_files` fails).  Not 100% sure what the behavior ought to
 be here.
 2. When running with in-memory database, database changes made in live
 server thread are not visible in test thread. (`test_database_writes`
 fails)... ...I'd assume(?) that'd pass on a proper database (not had time
 to test.)
 3. When running with sqlite database using TEST_NAME in database settings,
 everything always hangs after "would you like to try deleting the test
 database" prompt.
 4. Multiple databases not yet supported? (not written a test for this
 yet.)  Looks easy to fix.
 5. Process termination problem mentioned before can occur (Eg run
 `./runtests.py --settings=test_sqlite
 live_server_tests.TestViews.test_view`)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/2879#comment:78>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to