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,