Creating a URL for a whole test session log: pytest --pastebin=all tests/utils/test_logging.py Writing tests 🤗 transformers tests are based on unittest, but run by pytest, so most of the time features from both systems can be used.