test word separators
This commit is contained in:
parent
97af8ea80f
commit
0b09021d5c
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue