Add a django management command to list all tests in the project
Project description
Add a django management command to list all tests in the project
Quickstart
Install django-list-tests:
pip install django-list-tests
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_list_tests',
...
)
And run:
./manage.py list_tests <app_name>
You can use this command for fzf completion of tests:
# FZF ALL DAY ERRY DAY function tz() { # cache the test names to speed things up. you can go more complex with # watchman or whatever. if [[ ! -f '.test_names' ]]; then python $DJANGO_MANAGE_SCRIPT list_tests $DJANGO_ROOT_MODULE > ./.test_names fi TESTS=$( cat .test_names | fzf ) echo Runnning "$TESTS" python "$DJANGO_MANAGE_SCRIPT" "test" --keepdb "$TESTS" }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_list_tests-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25bd3c0c7f4e0dfb40f913b841416a9ea1ef1fa5c021ca4c7643fbbf2b78cf7a |
|
MD5 | bb99fda7efa200ec735ce1f0b4c0d693 |
|
BLAKE2b-256 | cd1e19258b97672757cad3a8146e0967ec44e7f9405fd8fa5b933b2c54c66d3e |