For the current released pymatgen version, creating an MPRester without an API key will raise a ValueError. This is fixed in the main pymatgen branch, but for now, this PR allows the tests to skip when no MP API key is present (as intended by the original code).
This should fix the test errors seen in #892 for @gbrunin.
For the current released pymatgen version, creating an
MPRester
without an API key will raise aValueError
. This is fixed in the main pymatgen branch, but for now, this PR allows the tests to skip when no MP API key is present (as intended by the original code).This should fix the test errors seen in #892 for @gbrunin.