Verified Commit f9fd7343 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed failing test

parent 84e4bf05
Pipeline #8505 passed with stages
in 3 minutes and 50 seconds
......@@ -16,7 +16,7 @@ def test_body_text_trigger_creation(factory_name, fields, factories):
obj.refresh_from_db()
cursor = connection.cursor()
sql = """
SELECT to_tsvector('{indexed_text}')
SELECT to_tsvector('english_nostop', '{indexed_text}')
""".format(
indexed_text=" ".join([getattr(obj, f) for f in fields if getattr(obj, f)]),
)
......@@ -41,7 +41,7 @@ def test_body_text_trigger_updaten(factory_name, fields, factories, faker):
obj.refresh_from_db()
cursor = connection.cursor()
sql = """
SELECT to_tsvector('{indexed_text}')
SELECT to_tsvector('english_nostop', '{indexed_text}')
""".format(
indexed_text=" ".join([getattr(obj, f) for f in fields if getattr(obj, f)]),
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment