haystack/test/utils/test_mmh3.py
Julian Risch 8cfeed095d
build: Remove mmh3 dependency (#4896)
* build: Remove mmh3 dependency

* resolve circular import

* pylint

* make mmh3.py sibling of schema.py

* pylint import order

* pylint

* undo example changes

* increase coverage in modeling module

* increase coverage further

* rename new unit tests
2023-05-17 21:31:08 +02:00

11 lines
241 B
Python

import pytest
from haystack.mmh3 import hash128
@pytest.mark.unit
def test_mmh3():
content = "This is the document text" * 100
hashed_content = hash128(content)
assert hashed_content == 305042678480070366459393623793278501577