Designing a cyclic pressure test programme requires more than just "pressurise and depressurise repeatedly." Ramp rate, hold time, and cycle count interact with the specific fatigue mechanism being investigated. Here's the implementation approach.

Pressure Profile State Machine

from enum import Enum

import time

class TestState(Enum):