ObservablePropertyTest

This is a test feature to test observable properties.

Methods

  • subscribe_alternating(self) -> Subscription[bool]

    Switches every second between true and false

    Response

    Type
    Subscription[bool]
    Description

  • subscribe_editable(self) -> Subscription[int]

    Can be set through SetValue command

    Response

    Type
    Subscription[int]
    Description

  • subscribe_fixed_value(self) -> Subscription[int]

    Always returns 42 and never changes.

    Response

    Type
    Subscription[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