pytest-django
pytest-django copied to clipboard
[RFC] consider testpaths config when looking for manage.py
trafficstars
I've came up with this when using pytest-django with https://github.com/djangonauts/django-rest-framework-gis/ (https://github.com/djangonauts/django-rest-framework-gis/pull/123), where it turned out useful to detect and add the tests dir to sys.path - but it's probably not a good idea altogether?! (for the common case)
TODO:
- [ ] doc
- [ ] tests
- [ ] Q: should it only consider testpaths (and not args) if it is configured?