def test_edit_node(self, grpc_server: CoreGrpcServer): # given client = CoreGrpcClient() session = grpc_server.coreemu.create_session() node = session.add_node(CoreNode) icon = "test.png" # then with client.context_connect(): result = client.edit_node(session.id, node.id, icon) # then assert result is True assert node.icon == icon
def test_edit_node(self, grpc_server): # given client = CoreGrpcClient() session = grpc_server.coreemu.create_session() node = session.add_node() # then x, y = 10, 10 with client.context_connect(): position = core_pb2.Position(x=x, y=y) response = client.edit_node(session.id, node.id, position) # then assert response.result is True assert node.position.x == x assert node.position.y == y