test word separators

This commit is contained in:
Colin Goutte 2023-08-27 21:42:54 +02:00
parent 97af8ea80f
commit 0b09021d5c
1 changed files with 19 additions and 0 deletions

View File

@ -186,6 +186,25 @@ def test_search_movies_token():
assert found[0] == movie_desc
def test_search_movies_token_period():
clear_db()
response = client.get("/movies/")
# assert response.json() == []
radix = rand_name()
title = radix + "test_search_title titletokenperiod."
with db_context() as db:
movie_title = crud.create_movie(
db, title=title, genres=["Animated", "Paropaganda"]
)
found = crud.search_movie(db, "title3tokenpreriod").all()
assert len(found) == 1
assert found[0] == movie_title
def test_sample_import_toy_story():
clear_db()