Django App Preloader
Project description
Django Spring
Installing
pip install git+git://github.com/lime-green/django-spring.git#egg=django-spring --upgrade
Usage
# First start the server:
spring start
# Then run a manage.py command (eg. test)
spring test --keepdb
# Optionally, specify a settings module:
DJANGO_SETTINGS_MODULE="base.settings" spring test --keepdb
Comparison
For a large project I tested against, it reduced the test time from 27.8s to 14.5s! Most of the time savings are from app startup, so the largest difference will be felt for running small test suites for large projects.
manage.py
# time ./manage.py test --keepdb billing_service/tests/test_user.py
..........
----------------------------------------------------------------------
Ran 10 tests in 5.090s
OK
Preserving test database for alias 'default'...
real 0m27.773s
user 0m9.490s
sys 0m2.510s
spring
# time spring test --keepdb billing_service/tests/test_user.py
[APP] running command `test --keepdb billing_service/tests/test_user.py`
..........
----------------------------------------------------------------------
Ran 10 tests in 4.714s
OK
Preserving test database for alias 'default'...
real 0m14.457s
user 0m0.180s
sys 0m0.100s
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-spring-0.0.4.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for django_spring-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daad577ad8c942bcdefa64537e69e3e4bba0264408885bf0991df464c3eb9dd0 |
|
MD5 | b1a6dc52da0e122802ccb8b6255c530e |
|
BLAKE2b-256 | e239be730bf0c38637e3df607c2ea1c1030bb8b1201cdf1230f42c0f2da50842 |