nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.12k stars 105 forks source link

[BUG] ImportError while importing test module #421

Closed Barmaley0 closed 2 weeks ago

Barmaley0 commented 3 weeks ago

NeoVim Version Output of nvim 0.9.5 Windows 10

Describe the bug Tests don't work

config image

errors

neotest

Even if I write :pytest on the command line, I get the same error on the PowerShell command line. But if I use PowerShell command line: python -m pytest then everything works fine. But, how do I use this in Neotest? image That's not how it works

Logs: There are no errors in the logs

Barmaley0 commented 3 weeks ago

Console PowerShell pytest image python -m pytest image

Barmaley0 commented 3 weeks ago

If you put python -m pytest, gives an error message. image

Barmaley0 commented 2 weeks ago

Found the answer in the documentation https://docs.pytest.org/en/stable/explanation/pythonpath.html