Skip to content

Commit

Permalink
rtest for repr
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhelal committed Sep 15, 2022
1 parent a054f15 commit ef98779
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/data/test_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def test_summary():
seed_everything(0)
dataset = FakeDataset(num_graphs=10)
summary = dataset.summary()
assert "FakeDataset" in str(summary)
assert summary.num_graphs == 10
num_nodes = torch.tensor([d.num_nodes for d in dataset]).float()
num_edges = torch.tensor([d.num_edges for d in dataset]).float()
Expand All @@ -50,6 +51,7 @@ def test_hetero_summary():
seed_everything(0)
dataset = FakeHeteroDataset(num_graphs=10)
summary = dataset.summary()
assert "FakeHeteroDataset" in str(summary)
assert summary.num_graphs == 10
num_nodes = torch.tensor([d.num_nodes for d in dataset]).float()
num_edges = torch.tensor([d.num_edges for d in dataset]).float()
Expand Down

0 comments on commit ef98779

Please sign in to comment.