Пример #1
0
def list(client):
    """Display basic information of the organization.

    Displays basic attributes of the authorized organization.
    """
    include = [User, Element, Sensor]
    org = Organization.singleton(client, include=include)
    Organization.display(client, [org], include=include)
Пример #2
0
def test_display_map(client):
    org = Organization.singleton(client, include=[Sensor, Element, User])
    assert org is not None

    display_map = Organization.display_map(client)
    assert display_map is not None

    values = [f(org) for f in display_map.values()]
    assert values is not None
Пример #3
0
def update(client, name):
    """Updates the attributes of the organization.

    Updates the attributes of the currently authorized organization.
    """
    org = Organization.singleton(client)
    org = org.update(name=name)
    include = [User, Element, Sensor]
    org = Organization.singleton(client, include=include)
    Organization.display(client, [org], include=include)