ObservableCommandTest

This is a test feature to test observable commands. It specifies various observable commands and returns defined answers to validate against.

Methods

  • observable_iteration(
      self,
      number_iterations : int
    ) -> int

    Observable iteration, running NumberIterations times and returning the current count as intermediate result.

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      number_iterations
      Type
      int
      Default
      Description

    Response

    Type
    int
    Description

  • echo_value_async(
      self,
      value : int,
      delay_in_ms : int
    ) -> int

    Echo the given value asynchronously after the specified delay.

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      value
      Type
      int
      Default
      Description

    • Name
      delay_in_ms
      Type
      int
      Default
      Description

    Response

    Type
    int
    Description

  • __init__(
      self,
      id : str,
      name : str,
    ) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      client
      Type
      Client
      Default
      Description

    • Name
      id
      Type
      str
      Default
      = ''
      Description

    • Name
      name
      Type
      str
      Default
      = ''
      Description

    • Name
      actions
      Type
      dict[str, Action]
      Default
      Description

  • __getattr__(self, name : str) -> Action

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      name
      Type
      str
      Default
      Description

    Response

    Type
    Action
    Description

  • __getitem__(self, name : str) -> Action

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      name
      Type
      str
      Default
      Description

    Response

    Type
    Action
    Description

Attributes

  • Name
    client
    Type
    Client
    Value

    = None

    Description

  • Name
    id
    Type
    str
    Value

    = ''

    Description

  • Name
    name
    Type
    str
    Value

    = ''

    Description

  • Name
    actions
    Type
    dict[str, Action]
    Value

    = dataclasses.field(repr=False, default_factory=dict)

    Description

Copyright © 2024