Skip to content

Commit 232747b

Browse files
committed
Fix test
1 parent dc38169 commit 232747b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/test_search_index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,12 @@ def test_search_index_validates_redis_modules(redis_url):
380380
"Required modules not installed"
381381
)
382382
with pytest.raises(RedisModuleVersionError):
383-
SearchIndex(
383+
index = SearchIndex(
384384
schema=IndexSchema.from_dict(
385385
{"index": {"name": "my_index"}, "fields": fields}
386386
),
387387
redis_client=client,
388388
)
389+
index.create(overwrite=True, drop=True)
390+
389391
mock_validate_sync_redis.assert_called_once()

0 commit comments

Comments
 (0)