Testing Agentic AI Applications: How to Use Pytest for LLM-Based Workflows