Python

Ʌ: Tech

PyTest

Only run a single test

pytest /path/to/test_file.py::test_name

Do not capture output

-s

Logging

pytest --log-format="%(asctime)s %(levelname)s %(message)s" --log-date-format="%Y-%m-%d %H:%M:%S" --log-level=0

Troubleshooting

error: invalid command ‘bdist_wheel’

pip install wheel