We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 499fed1 commit 5e3289dCopy full SHA for 5e3289d
1 file changed
tests/molecules/test_molecules.py
@@ -1,10 +1,19 @@
1
-"""Test basic molecules functionality."""
+"""Test basic molecules functionality.
2
+
3
+This class currently is non-functional, except as an access
4
+point for other resters, therefore we include only basic tests here.
5
+"""
6
7
from mp_api.client.routes.molecules.molecules import BaseMoleculeRester, MoleculeRester
8
from mp_api.client.routes.molecules import MOLECULES_RESTERS
9
10
11
def test_molecule_rester():
- assert set(dir(MoleculeRester())) == set(
- dir(BaseMoleculeRester) + list(MOLECULES_RESTERS)
- )
12
+ with MoleculeRester() as rester:
13
+ assert set(dir(rester)) == set(
14
+ dir(BaseMoleculeRester) + list(MOLECULES_RESTERS)
15
+ )
16
17
+ assert all(
18
+ getattr(rester, k) == lazy_obj for k, lazy_obj in MOLECULES_RESTERS.items()
19
0 commit comments