In a file whose only content is
def test_sanity():
pass
I am trying to run the file, named test_something.py
.
The folder structure is
uv_metadata
|---uv_metadata
|------tests
|----------test_something.py
Getting the error
ssh://noam.s@ML:2202/home/noam.s/src/uv_metadata/venv/bin/python -u /home/noam.s/.pycharm_helpers/pycharm/_jb_pytest_runner.py --target test_something.py::test_sanity
Testing started at 14:34 ...
sh: 1: cd: can't cd to C:/Users/noam.s/src/uv_metadata/uv_metadata/tests
Launching pytest with arguments test_something.py::test_sanity --no-header --no-summary -q in /home/noam.s
============================= test session starts ==============================
collected 0 items
============================ no tests ran in 0.00s =============================
ERROR: file or directory not found: test_something.py::test_sanity
Process finished with exit code 4
Empty suite
I notice the line sh: 1: cd: can't cd to C:/Users/noam.s/src/uv_metadata/uv_metadata/tests
, which doesn't make sense. Here is how my remote interpreter is configured:
This just stopped working, I don't know what has changed.
How to make Pycharm recognize the test folder again?