Skip to content

Commit 5c3f639

Browse files
xfail mp test pending rewrite to use modern api client
1 parent c3c3f41 commit 5c3f639

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/data_retrieval/test_retrieve_MP.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import unittest
22

3+
import pytest
34
from pymatgen.core import SETTINGS
45
from pymatgen.electronic_structure.bandstructure import (
56
BandStructure,
@@ -10,7 +11,8 @@
1011
from matminer.data_retrieval.retrieve_MP import MPDataRetrieval
1112

1213

13-
@unittest.skipIf(not SETTINGS.get("PMG_MAPI_KEY", ""), "PMG_MAPI_KEY not in environment variables.")
14+
@pytest.mark.skipif(not SETTINGS.get("PMG_MAPI_KEY", ""), reason="PMG_MAPI_KEY not in environment variables.")
15+
@pytest.mark.xfail(reason="Needs updates to use current MP API client - flakey test.", strict=False)
1416
class MPDataRetrievalTest(unittest.TestCase):
1517
def setUp(self):
1618
self.mpdr = MPDataRetrieval()

0 commit comments

Comments
 (0)