Opened 9 years ago

Last modified 9 years ago

#25046 closed New feature

Initial SQL scripts (not data) for testing — at Initial Version

Reported by: liwee Owned by: nobody
Component: Testing framework Version: 1.8
Severity: Normal Keywords: testing view create_test_db
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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?

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top