#25046: Initial SQL scripts (not data) for testing
-------------------------------------+-------------------------------------
     Reporter:  liwee                |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Testing framework    |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:  testing view         |             Triage Stage:
  create_test_db                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by liwee):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> I use quite a lot of database view (i.e. CREATE VIEW my_view) in my
> project. The only way to test the views is set keepdb=True, load the
> views and manage the test_database as a static entity forever. Ideally, I
> would prefer creating a clean database from both fixtures and database
> views whenever I need to run a test. Is it possible to add an option to
> load a sql script on create_test_db?

New description:

 I use quite a lot of database view (i.e. CREATE VIEW my_view) in my
 project. The only way to test the views is set keepdb=True, load the views
 and manage the test_database as a static entity forever. Ideally, creating
 a clean database from both fixtures and database views whenever I need to
 run a test makes more sense. Is it possible to add an option to load a sql
 script on create_test_db?

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25046#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.6c0d75b18a4e0cb06a528f65ab28a457%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to