def ipe_id(self): if self._ipe_id is None: graph = self.ipe.graph() try: self._ipe_id = get_ipe_graph(self.interface.gbdx_connection, graph['id']) except NotFound: self._ipe_id = register_ipe_graph( self.interface.gbdx_connection, graph) return self._ipe_id
def test_get_graph(self): graphid = 'ba79f76782438c70087765c35f413def88f92b73627227830a531cddbfa2ed1a' json = get_ipe_graph(self.gbdx.gbdx_connection, graphid) assert json['id'] == graphid
def graph(self): if self._graph is None: self._graph = get_ipe_graph(self._interface.gbdx_connection, self._ipe_id) return self._graph