UnobservablePropertyTest

This feature tests a static and a dynamic unobservable property.

Methods

  • get_answer_to_everything(self) -> int

    Returns the answer to the ultimate question of life, the universe, and everything. 42.

    Response

    Type
    int
    Description

  • get_seconds_since_1970(self) -> int

    Returns the unix timestamp: The time in seconds since January 1st of 1970.

    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