nvim-neotest / neotest-python

MIT License
116 stars 34 forks source link

Add: Added django support. #54

Closed afrischk closed 7 months ago

afrischk commented 10 months ago

This PR adds support for django and leverages the django internal DiscoverRunner for this. Note that the DJANGO_SETTINGS_MODULE environment variable has to be set.

afrischk commented 7 months ago

Please do not merge yet. I get ModuleNotFoundError: No module named 'django' now.

It seems like the django module can not be found anymore. Django is installed within my virtual env of the project and it worked before. I am new to neovim plugin development. Do I have to tell the plugin where to find the module? How do I do this?

@rcarriga Can you please give me some pointers? I am confused...

afrischk commented 7 months ago

Ok, got it working now. I want to add the handling of django test arguments like --keep-db to the PR as it seems to be important to some users.

afrischk commented 7 months ago

@rcarriga Can you please check again? Thanks

rcarriga commented 7 months ago

Thanks again for the PR!