Skip to content

Commit

Permalink
Update test_generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunp2 authored Dec 4, 2023
1 parent 40e296c commit 064234b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def load_size_gnn_model():
return sizegnn

def test_load_model(load_denoising_model, load_size_gnn_model):
print(load_denoising_model.__class__.__name__)
print(load_denoising_model.__class__._xw_name__)
print(load_size_gnn_model.__class__.__name__)
print("Successful?")

Expand All @@ -35,9 +35,15 @@ def test_training():
...

# https://docs.pytest.org/en/7.1.x/how-to/parametrize.html
@mark.parametrize('n_atoms', [5, 6])
def test_sampling(n_atoms):
@mark.parametrize('n_atoms', [3, 4])
def test_sampling_num_atoms(n_atoms):
run_generator(n_atoms=n_atoms)

@mark.parametrize('n_atoms', [3])
@mark.parametrize('node', ['CuCu', 'ZnZn', 'ZnOZnZnZn'])
@mark.parametrize('n_samples', [1, 3])
def test_sampling_num_atoms(n_atoms, node, n_samples):
run_generator(n_atoms=n_atoms, node=node, n_samples=n_samples)

def test_fragmentation():
...

0 comments on commit 064234b

Please sign in to comment.