diff --git a/tools/rebuild-test-database b/tools/rebuild-test-database index 916df56bfe..ca0ead5578 100755 --- a/tools/rebuild-test-database +++ b/tools/rebuild-test-database @@ -4,7 +4,15 @@ set -x export DJANGO_SETTINGS_MODULE=zproject.test_settings -create_template_database() +create_zulip_test() +{ +psql -v ON_ERROR_STOP=1 -h localhost postgres zulip_test < zerver/tests/fixtures/messages.json # create pristine template database, for fast fixture restoration after tests are run. -create_template_database +create_zulip_test_template