zulip/zerver
Tomasz Kolek dbeab6aa6f Optimize checks of test database state by moving into Python.
Previously, the generate-fixtures shell script by called into Django
multiple times in order to check whether the database was in a
reasonable state.  Since there's a lot of overhead to starting up
Django, this resulted in `test-backend` and `test-js-with-casper`
being quite slow to run a single small test (2.8s or so) even on my
very fast laptop.

We fix this is by moving the checks into a new Python library, so that
we can avoid paying the Django startup overhead 3 times unnecessarily.
The result saves about 1.2s (~40%) from the time required to run a
single backend test.

Fixes #1221.
2016-10-05 10:40:19 -07:00
..
fixtures Add Pipeline Hook event handling to gitlab integration. 2016-10-02 09:35:07 -07:00
lib Optimize checks of test database state by moving into Python. 2016-10-05 10:40:19 -07:00
management Optimize checks of test database state by moving into Python. 2016-10-05 10:40:19 -07:00
migrations Add option for hosting each realm on its own subdomain. 2016-09-27 23:24:14 -07:00
templatetags Annotate zerver/templatetags/minified_js.py. 2016-09-12 08:10:50 -07:00
tests Move render_markdown() to lib/message.py. 2016-10-04 11:34:53 -07:00
views Extract zerver/lib/message.py. 2016-10-04 11:31:20 -07:00
worker socket: Switch localhost to 127.0.0.1. 2016-09-13 10:01:57 -07:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py portico: Add options to disable login and about links. 2016-09-13 22:59:09 -07:00
decorator.py subdomains: Enforce subdomain checks on every API endpoint. 2016-09-27 23:25:07 -07:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
forms.py Add option for hosting each realm on its own subdomain. 2016-09-27 23:24:14 -07:00
logging_handlers.py settings: Extract settings.STAGING_ERROR_NOTIFICATIONS. 2016-07-19 15:28:41 -07:00
middleware.py Add option for hosting each realm on its own subdomain. 2016-09-27 23:24:14 -07:00
models.py Remove unused bugdown global from models.py. 2016-10-04 11:35:03 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py Annotate zerver/storage.py. 2016-08-08 15:12:12 -07:00
tornadoviews.py zerver/tornado.py: Convert queue_id to str. 2016-07-04 02:58:57 +05:30