viceroy
fastly_compute::testing::viceroy
Testing utilities for Fastly Compute tests.
This module provides pytest fixtures and base classes for testing Fastly Compute services with viceroy.
To enable automatic viceroy output on test failures, add this to your conftest.py:
pytestplugins = ["fastlycompute.pytest_plugin"]
Classes
| AutoViceroyTestBase | Test base class which tests against an ephemeral, generated WASM application. |
| ViceroyException | An exception passed back from Viceroy-dwelling code |
| ViceroyReturn | A function return value passed back from Viceroy-dwelling code |
| ViceroyServer | Represents a running viceroy server instance. |
| ViceroyTestBase | Base class for viceroy tests. |
Functions
| on_viceroy | Decorator for making a method run on the testrunner's Viceroy server |