Fixtures

The conceptual design of the fixtures is illustrated in the diagram below.

../_images/fixture_design.jpg

The skallop fixtures are essentially focused on providing and setting the state of the following two objects:

  1. TelescopeContext

  2. SubarrayContext

These two classes manipulate the state and sets correct tear downs for pytest using a set of context manager functions belonging to the mvp_management package. These context managers in turn, make use of the mvp_control package to correctly control and monitor readiness of the mvp during setup and tear down.

The corresponding object and it’s required state for each providing fixture is listed below.

Fixture Name

Provides

Resulting State

running_telescope

TelescopeContext

ON

standby_telescope

TelescopeContext

OFF

allocated_subarray

SubarrayContext

IDLE

configured_subarray

SubarrayContext

READY