Skip to content

Commit 7cca9c5

Browse files
committed
Skip partial_data tests for elastic search for which it has not been implemented yet.
1 parent e04387f commit 7cca9c5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/server/routers/test_partial_data.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
import pytest
2+
13
from optimade.models import PartialDataResponse
4+
from optimade.server.config import CONFIG
25

36
from ..utils import NoJsonEndpointTests
47

58

9+
@pytest.mark.skipif(
10+
CONFIG.database_backend.value not in ("mongomock", "mongodb"),
11+
reason="At the moment partial data is only supported for the MongoDB backend",
12+
)
613
class TestPartialDataEndpoint(NoJsonEndpointTests):
714
"""Tests for /partial_data/<entry_id>"""
815

@@ -22,8 +29,7 @@ def test_property_ranges_link(get_good_response, client):
2229

2330

2431
def test_wrong_id_partial_data(check_error_response, client):
25-
"""If a non-supported versioned base URL is passed, `553 Version Not Supported` should be returned
26-
32+
"""
2733
A specific JSON response should also occur.
2834
"""
2935
test_id = "mpf_486"

0 commit comments

Comments
 (0)