Skip to content

Commit

Permalink
Update test_interface.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Jun 20, 2024
1 parent 5b92da9 commit 395f973
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ def test_equilibrium_volume(self):


class TestExperimentalReference(TestCase):
# def test_wikipedia(self):
# self.assertAlmostEqual(
# get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "youngs_modulus"}),
# 70.0)
# self.assertAlmostEqual(
# get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "poissons_ratio"}),
# 0.35)
# self.assertAlmostEqual(
# get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "bulk_modulus"}),
# 76.0)
# self.assertAlmostEqual(
# get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "shear_modulus"}),
# 26.0)
def test_wikipedia(self):
self.assertAlmostEqual(
get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "youngs_modulus"}),
70.0)
self.assertAlmostEqual(
get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "poissons_ratio"}),
0.35)
self.assertAlmostEqual(
get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "bulk_modulus"}),
76.0)
self.assertAlmostEqual(
get_experimental_elastic_property_wikipedia.invoke({"chemical_symbol": "Al", "property": "shear_modulus"}),
26.0)

def test_mendeleev(self):
self.assertEqual(get_element_property_mendeleev.invoke({"chemical_symbol": "Al", "property": "atomic_number"}), "13")
Expand Down

0 comments on commit 395f973

Please sign in to comment.