Skip to content

Commit

Permalink
Remove deprecated tests that are not strictly true (#79)
Browse files Browse the repository at this point in the history
* remove deprecated tests

Signed-off-by: Marcel Müller <[email protected]>

* remove random numpy seed as it's pointless now

Signed-off-by: Marcel Müller <[email protected]>

---------

Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
marcelmbn authored Nov 15, 2024
1 parent 4047a38 commit 92399dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np
import pytest

np.random.seed(0)
np.set_printoptions(precision=16)


Expand Down
13 changes: 0 additions & 13 deletions test/test_generate/test_generate_molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,6 @@ def test_generate_atom_list(min_atoms, max_atoms, default_generate_config):
assert np.sum(atom_list) >= min_atoms
assert np.sum(atom_list) <= max_atoms

# Check that the sum of transition and lanthanide metals is never greater than 3
all_metals = (
get_three_d_metals()
+ get_four_d_metals()
+ get_five_d_metals()
+ get_lanthanides()
)
assert np.sum([atom_list[z] for z in all_metals]) <= 3

# Check that the sum of alkali and alkaline earth metals is never greater than 3
alkmetals = get_alkali_metals() + get_alkaline_earth_metals()
assert np.sum([atom_list[z] for z in alkmetals]) <= 3


# Test the element composition property of the GenerateConfig class
def test_generate_config_element_composition(default_generate_config):
Expand Down

0 comments on commit 92399dc

Please sign in to comment.