From e46125ec2e87152ae7d41d2f9a05c7a0f5fd23c2 Mon Sep 17 00:00:00 2001 From: Dan Allan Date: Fri, 5 Apr 2024 15:42:32 -0400 Subject: [PATCH] Activate full_text unit test on SQLite --- tiled/_tests/test_queries.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tiled/_tests/test_queries.py b/tiled/_tests/test_queries.py index 2974fb6a7..d13a29e39 100644 --- a/tiled/_tests/test_queries.py +++ b/tiled/_tests/test_queries.py @@ -163,18 +163,10 @@ def test_contains(client): def test_full_text(client): - if client.metadata["backend"] in {"sqlite"}: - - def cm(): - return fail_with_status_code(HTTP_400_BAD_REQUEST) - - else: - cm = nullcontext - with cm(): - assert list(client.search(FullText("z"))) == ["z", "does_contain_z"] - # plainto_tsquery fails to find certain words, weirdly, so it is a useful - # test that we are using tsquery - assert list(client.search(FullText("purple"))) == ["full_text_test_case"] + assert list(client.search(FullText("z"))) == ["z", "does_contain_z"] + # plainto_tsquery fails to find certain words, weirdly, so it is a useful + # test that we are using tsquery + assert list(client.search(FullText("purple"))) == ["full_text_test_case"] def test_regex(client):