---
title: pytest_runtest_makereport
summary: Hook to display viceroy output on test failure.
url: https://www.fastly.com/documentation/reference/compute/sdks/python/fastly_compute/pytest_plugin/fn.pytest_runtest_makereport/
---

**Kind:** Function  
**Module:** [pytest_plugin](https://www.fastly.com/documentation/reference/compute/sdks/python/fastly_compute/pytest_plugin/)  
**Package:** fastly-compute 0.1.3  
**Source:** https://github.com/fastly/compute-sdk-python/blob/2bffcc6d596a68bcc0b4342404641deff78e68f6/fastly_compute/pytest_plugin.py#L9

```python
pytest_runtest_makereport(item, call)
```

Hook to display viceroy output on test failure.

This hook automatically displays recent viceroy server output
when any test fails, making debugging easier.

**Parameters**

- `item`: `Any`
- `call`: `Any`
