Skip to content

Commit

Permalink
tests: implement percolator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Panero committed Feb 1, 2022
1 parent e15b447 commit bb80a72
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 255 deletions.
1 change: 0 additions & 1 deletion invenio_oaiserver/percolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def _delete_percolator(spec, search_pattern):
# Create the percolator doc_type in the existing index for >= ES5
for index, mapping_path in current_search.mappings.items():
percolator_doc_type = _get_percolator_doc_type(index)
_create_percolator_mapping(index, percolator_doc_type)
current_search_client.delete(
index=_build_percolator_index_name(index),
doc_type=percolator_doc_type,
Expand Down
9 changes: 0 additions & 9 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,6 @@ def without_oaiset_signals(app):
current_oaiserver.register_signals_oaiset()


@pytest.yield_fixture
def without_oaiset_signals(app):
"""Temporary disable oaiset signals."""
from invenio_oaiserver import current_oaiserver
current_oaiserver.unregister_signals_oaiset()
yield
current_oaiserver.register_signals_oaiset()


@pytest.fixture
def schema():
"""Get record schema."""
Expand Down
Loading

0 comments on commit bb80a72

Please sign in to comment.