Opened 10 years ago
Last modified 10 years ago
#25046 closed New feature
Initial SQL scripts (not data) for testing — at Version 1
| 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 (last modified by )
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?
Note:
See TracTickets
for help on using tickets.