I would like to understand what is the differance between running:
$ pytest
and
$ python -m pytest tests
I am worikng in a virtual enviroment on a Mac. The first solution gives me an error :
ModuleNotFoundError: No module named 'app'  
The second solution works fine.
Why does the second solution work and the the first one not?
How can I make it work with just $ pytest?
My folder structure:
├── app.py   
├── requirements.txt  
├── templates  
├── tests  
│   ├── conftest.py  
│   ├── functional  
│   │   ├── __init__.py  
│   │   └── test_s.py   
│   └── unit   
│       ├── __init__.py   
│       └── test_app.py   
└── venv   
In test_app.py, this line fails:
from app import app
 
     
     
    