Skip to content
Prev Previous commit
Next Next commit
fix: prevent computedValue from affecting other tests
  • Loading branch information
aMahanna committed Aug 8, 2023
commit 26083c57da75104d2f33f16e4bf62e5749af0c28
2 changes: 2 additions & 0 deletions tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def test_collection_misc_methods(col, bad_col, cluster):
assert properties["system"] is False
assert properties["sync"] is not prev_sync
assert properties["computedValues"] == computed_values
col.configure(computed_values=[])

# Test configure properties with bad collection
with assert_raises(CollectionConfigureError) as err:
Expand Down Expand Up @@ -210,6 +211,7 @@ def test_collection_management(db, bad_db, cluster):
assert properties["sync"] is True
assert properties["system"] is False
assert properties["computedValues"] == computed_values
col.configure(computed_values=[])

# Test create duplicate collection
with assert_raises(CollectionCreateError) as err:
Expand Down