Commit cb0d544
committed
fix: Restore database.backend config after multi-backend tests
The connection_by_backend fixture was setting dj.config['database.backend']
globally without restoring it after tests, causing subsequent tests to run
with the wrong backend (postgresql instead of mysql).
Now saves and restores the original backend, host, and port configuration.1 parent 450d2b9 commit cb0d544
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
330 | 335 | | |
331 | 336 | | |
332 | 337 | | |
| |||
349 | 354 | | |
350 | 355 | | |
351 | 356 | | |
| 357 | + | |
| 358 | + | |
352 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
353 | 365 | | |
354 | 366 | | |
355 | 367 | | |
| |||
0 commit comments