16👍
Late in answering this question. But hope this helps someone:
python <project_path>/manage.py test <your_project_dir>
From Django documentation:
You can also provide a path to a directory to discover tests below that directory:
$ ./manage.py test animals/
References:
2👍
Based on the comments from @dizballanze and feedback from review of the code, I wound up doing this:
(cd /somedir && python manage.py test)
I’m still curious as to whether it’s possible to run the tests without cding into the root directory of the project, though.
- Wrong url with Django Sorl thumbnail with Amazon s3
- CharField max_length 2^n vs 2^n-1
- Call method once to set multiple fields in Django Rest Framework serializer
- Python not importing dotenv module
- Django Apache Redirect Problem
Source:stackexchange.com