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"
}
Metadata
Release files for django-list-tests 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-list-tests-0.1.2.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_list_tests-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / django-list-tests-0.1.2.tar.gz
| Download URL | django-list-tests-0.1.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33e7d7af9388af7e7c4ba06b9368f8eb0f73cbd94a2e11b7c5135a5d6cf85e82
|
|
BLAKE2b-256 checksum How to use checksums |
eb608661216813e0411335f4d315ed9a1cb018774b72e1deac9d19e3074fa03c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / django_list_tests-0.1.2-py2.py3-none-any.whl
| Download URL | django_list_tests-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
25bd3c0c7f4e0dfb40f913b841416a9ea1ef1fa5c021ca4c7643fbbf2b78cf7a
|
|
BLAKE2b-256 checksum How to use checksums |
cd1e19258b97672757cad3a8146e0967ec44e7f9405fd8fa5b933b2c54c66d3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|