Fixtures
The conceptual design of the fixtures is illustrated in the diagram below.
The skallop fixtures are essentially focused on providing and setting the state of the following two objects:
TelescopeContext
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 |
|
ON |
standby_telescope |
|
OFF |
allocated_subarray |
|
IDLE |
configured_subarray |
|
READY |