test_dataset.py 699 Bytes
Newer Older
1
2
3
4
5
6
7
import pytest
from dgl import graphbolt as gb


def test_Dataset():
    dataset = gb.Dataset()
    with pytest.raises(NotImplementedError):
8
        _ = dataset.train_set
9
    with pytest.raises(NotImplementedError):
10
        _ = dataset.validation_set
11
    with pytest.raises(NotImplementedError):
12
        _ = dataset.test_set
13
    with pytest.raises(NotImplementedError):
14
        _ = dataset.graph
15
    with pytest.raises(NotImplementedError):
16
        _ = dataset.feature
17
18
19
20
21
22
    with pytest.raises(NotImplementedError):
        _ = dataset.dataset_name
    with pytest.raises(NotImplementedError):
        _ = dataset.num_classes
    with pytest.raises(NotImplementedError):
        _ = dataset.num_labels