From a5d22226cf2291a573f75740b47822a85c540ac0 Mon Sep 17 00:00:00 2001 From: stumpylog <797416+stumpylog@users.noreply.github.com> Date: Fri, 11 Sep 2026 09:12:28 -0700 Subject: [PATCH] Sonar being useful actually --- src/documents/tests/search/test_schema_fingerprint.py | 3 --- src/documents/tests/search/test_schema_version.py | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/documents/tests/search/test_schema_fingerprint.py b/src/documents/tests/search/test_schema_fingerprint.py index 253861247..3d079a7f9 100644 --- a/src/documents/tests/search/test_schema_fingerprint.py +++ b/src/documents/tests/search/test_schema_fingerprint.py @@ -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: diff --git a/src/documents/tests/search/test_schema_version.py b/src/documents/tests/search/test_schema_version.py index 902256c48..77a939b0b 100644 --- a/src/documents/tests/search/test_schema_version.py +++ b/src/documents/tests/search/test_schema_version.py @@ -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,