Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
apetenchea committed Oct 30, 2024
1 parent e444373 commit 02b707d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def test_collection_misc_methods(doc_col, bad_col):


@pytest.mark.asyncio
async def test_collection_index(doc_col, bad_col):
async def test_collection_index(doc_col, bad_col, cluster):
# Create indexes
idx1 = await doc_col.add_index(
type="persistent",
Expand Down Expand Up @@ -91,7 +91,8 @@ async def test_collection_index(doc_col, bad_col):
assert idx3.fields == ["location"]
assert idx3.name == "idx3"
assert idx3.geo_json is True
assert idx3.in_background is True
if cluster:
assert idx3.in_background is True

with pytest.raises(IndexCreateError):
await bad_col.add_index(type="persistent", fields=["_key"])
Expand Down

0 comments on commit 02b707d

Please sign in to comment.