'Python Importstructure Pytest

I found this tutorial on how to use pytest and just git cloned it and ran it in VsCode. The tests work perfectly fine, when I run them from the command line with python -m pytest however when I want to use the GUI provided by VsCode it wont show the tests due to an error in discovering the tests. A screenshot of the error is shown below.

Screenshot from the Error

Is there a way that I can benefit from the VsCode GUI but still keep the project structure as proposed in the tutorial?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source