pytest-django icon indicating copy to clipboard operation
pytest-django copied to clipboard

[RFC] consider testpaths config when looking for manage.py

Open blueyed opened this issue 8 years ago • 1 comments
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?

blueyed avatar May 15 '17 14:05 blueyed