Sonar being useful actually

This commit is contained in:
stumpylog
2026-09-11 09:12:28 -07:00
parent 47e030cf19
commit a5d22226cf
2 changed files with 2 additions and 4 deletions
@@ -371,9 +371,6 @@ class TestFingerprintSensitivity:
assert schema_fingerprint() != before
def test_repeated_calls_agree(self) -> None:
assert schema_fingerprint() == schema_fingerprint()
class TestFingerprintIsIndependentOfTantivy:
def test_a_tantivy_option_key_addition_would_not_move_it(self) -> None:
@@ -138,8 +138,9 @@ class TestUpgradeFromReleasedV1Index:
This is exactly what WriteBatch.__enter__ does on every index write.
"""
schema = build_schema()
with pytest.raises(ValueError, match="schema does not match"):
tantivy.Index(build_schema(), path=str(released_v1_index))
tantivy.Index(schema, path=str(released_v1_index))
def test_opening_a_v1_index_leaves_it_writable(
self,