项目文件夹

文件
2023-07-11 13:16:14 +08:00

29 行
775 B
Python

import os
import tempfile
import numpy as np
import pydantic
import pytest
from dgl import graphbolt as gb
def test_Dataset():
dataset = gb.Dataset()
with pytest.raises(NotImplementedError):
_ = dataset.train_sets()
with pytest.raises(NotImplementedError):
_ = dataset.validation_sets()
with pytest.raises(NotImplementedError):
_ = dataset.test_sets()
with pytest.raises(NotImplementedError):
_ = dataset.graph()
with pytest.raises(NotImplementedError):
_ = dataset.feature()
with pytest.raises(NotImplementedError):
_ = dataset.dataset_name
with pytest.raises(NotImplementedError):
_ = dataset.num_classes
with pytest.raises(NotImplementedError):
_ = dataset.num_labels