mardi 3 décembre 2019

Not able to run specific test from test_file when folder with same name

IDLE: PyCharm Runner: pytest

When I have a test file and a folder with the same name in the same dir I'm not able to run my test. I need this structure when using tmpdir as dependency injection to not mess my _test directory with several script files in the same dir.

Simple Project structure with error

Ways it works:

  • If the folder has no .py file inside it.
  • If I run the whole file instead of just a test inside it.

Reproducing Error:

causing the error error message

I was going to report it but I already found a thread about it: https://youtrack.jetbrains.com/issue/PY-25260

Does anyone know a fix for this?

Aucun commentaire:

Enregistrer un commentaire