test_dataset.py 544 Bytes
Newer Older
1
2
3
import os
import tempfile

4
5
import numpy as np

6
import pydantic
7
8
9
10
11
12
13
import pytest
from dgl import graphbolt as gb


def test_Dataset():
    dataset = gb.Dataset()
    with pytest.raises(NotImplementedError):
14
        _ = dataset.train_sets()
15
    with pytest.raises(NotImplementedError):
16
        _ = dataset.validation_sets()
17
    with pytest.raises(NotImplementedError):
18
        _ = dataset.test_sets()
19
20
21
22
    with pytest.raises(NotImplementedError):
        _ = dataset.graph()
    with pytest.raises(NotImplementedError):
        _ = dataset.feature()