Skip to content

Commit

Permalink
Reactivate suggest test (#1394)
Browse files Browse the repository at this point in the history
* Reactivate suggest test

* Fix suggest tests for new relations index
  • Loading branch information
jotare authored Jan 4, 2024
1 parent 8ad4b5e commit 5d7b87a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nucliadb/nucliadb/tests/integration/test_suggest.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ async def test_suggestion_on_link_computed_titles_sc6088(
assert suggested["text"] == extracted_title


@pytest.mark.skip(reason="Bindings not released")
@pytest.mark.asyncio
@pytest.mark.parametrize("knowledgebox", ("EXPERIMENTAL", "STABLE"), indirect=True)
async def test_suggest_features(
nucliadb_grpc: WriterStub,
nucliadb_reader: AsyncClient,
Expand All @@ -349,8 +349,9 @@ def assert_expected_paragraphs(response):
}

def assert_expected_entities(response):
assert response["entities"]["total"] == 1
assert set(response["entities"]["entities"]) == {"Anna"}
expected = {"Anastasia", "Anna", "Anthony"}
assert response["entities"]["total"] == len(expected)
assert set(response["entities"]["entities"]) == expected

resp = await nucliadb_reader.get(
f"/kb/{knowledgebox}/suggest",
Expand Down

0 comments on commit 5d7b87a

Please sign in to comment.