API¶
This part of the documentation covers all the interfaces of Flask. For parts where Flask depends on external libraries, we document the most important right here and provide links to the canonical documentation.
Application Object¶
- class octoprobe.octoprobe.CtxTestRun(connected_tentacles: Sequence[TentacleBase])[source]¶
The context of a test run
- class octoprobe.util_baseclasses.TentacleSpecBase(tentacle_type: ~enum.StrEnum, tentacle_tag: str, futs: list[~enum.StrEnum], doc: str, tags: str, relays_closed: dict[~enum.StrEnum | None, list[int]] = <factory>, mcu_usb_id: ~octoprobe.util_baseclasses.BootApplicationUsbID | None = None, programmer_args: list[str] = <factory>)[source]¶
Specification for a Tentacle, for example:
>>> TentacleSpec( tentacle_type=TentacleType.TENTACLE_MCU, futs=[EnumFut.FUT_I2C, EnumFut.FUT_UART], label="pico", tags="boards=RPI_PICO,mcu=rp2,programmer=picotool",
This class is heavely used in testcode and therefore has to support typehints and code completion to ease the work of writing/maintaining testcode.
Therefore this class uses generics. which allows to define parts of this class on testbed level.