I used easy_install to install pytest on a mac and started writing tests for a project with a file structure likes so:
repo/ repo/app.py repo/settings.py rep
Run pytest itself as a module with: python -m pytest tests
pytest
python -m pytest tests