Skip to content

Commit 5e43b4f

Browse files
kbumatschaume
authored andcommitted
add test for large result test on robocrys search
1 parent 9e28c72 commit 5e43b4f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/materials/test_robocrys.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,18 @@ def test_client(rester):
2323

2424
assert doc.description is not None
2525
assert doc.condensed_structure is not None
26+
27+
28+
# TODO: switch this to the skipif once emmet PR 1261 is deployed to production
29+
# @pytest.mark.skipif(os.getenv("MP_API_KEY", None) is None, reason="No API key found.")
30+
@pytest.mark.skip(reason="Query with large result set fails with faceted pipeline")
31+
def test_client_large_result_set(rester):
32+
search_method = rester.search
33+
34+
if search_method is not None:
35+
q = {"keywords": ["Orthorhombic"], "num_chunks": 1}
36+
37+
doc = search_method(**q)[0]
38+
39+
assert doc.description is not None
40+
assert doc.condensed_structure is not None

0 commit comments

Comments
 (0)