optimization: Use Python to test management commands.

The original test was written in shell script which launches a new
django instance for every tests. By doing it in Python, we avoid
the overhead and reduce the test time to <1 second.

Fixes #3620.
This commit is contained in:
Tommy Ip
2017-02-09 21:58:43 +00:00
committed by Tim Abbott
parent 4092aab620
commit c7e33c6c9f
5 changed files with 42 additions and 26 deletions

View File

@@ -39,8 +39,6 @@ run ./tools/test-js-with-node
run ./tools/run-mypy
run ./tools/test-backend $FORCEARG
run ./tools/test-js-with-casper $FORCEARG
# Not running management test since it takes 40s and thus is too slow to be worth it.
# run ./tools/test-management
# Not running queue worker reload tests since it's low-churn code
# run ./tools/test-queue-worker-reload
# Not running documentation tests since it takes 20s and only tests documentation