mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36:48 +00:00
test: the suite runs with manage.py test --parallel
Django clones a SQLite test database by copying its main file, while migrate's writes were still in the WAL file, so every clone had no tables. The project test runner writes the WAL back before cloning. Its pool workers are no longer daemonic, so the operations process tests can start their own workers. tblib carries the traceback of a failure out of a worker instead of ending the run. The suite takes 35 s on 8 CPUs instead of 133 s. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
aa720e09e8
commit
8e23138ef7
4 changed files with 45 additions and 1 deletions
|
|
@ -7,3 +7,5 @@ django-debug-toolbar==8.0.0
|
|||
django-debug-toolbar-template-profiler==2.1.0
|
||||
pip-audit==2.10.1
|
||||
ruff==0.17.0
|
||||
# tracebacks of failures in manage.py test --parallel
|
||||
tblib==3.2.2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue