Use the -s option of pytest in azure-pipeline.yml to keep pytest from capturing output that is sent to stdout.
pytest -s

See https://docs.pytest.org/en/latest/capture.html.

Happy Debugging!