Opened 4 years ago
Closed 4 years ago
#33183 closed Cleanup/optimization (duplicate)
keepdb results in "Using existing database" log line, even when no database exists
| Reported by: | Valentijn Scholten | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 3.2 |
| Severity: | Normal | Keywords: | keepdb |
| 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 )
The log output for running tests with --keepdb can be confusing:
- make sure no test database exists
- run a test with
--keepdb - observe log output
Using existing test database for alias 'default'... - observe that a new test database is created now, without any log output (unless there are migrations which output logs)
Offending code: https://github.com/django/django/blob/ca9872905559026af82000e46cde6f7dedc897b6/django/db/backends/base/creation.py#L44
Solution:
Update log lines to reflect what's happening.
Change History (2)
comment:1 by , 4 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 4 years ago
| Component: | Testing framework → Database layer (models, ORM) |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #29043.