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)
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
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)