feat(analyzer): move compute_md5 to shared library
This commit is contained in:
parent
c0bddf83a8
commit
be9f36dbdc
4 changed files with 29 additions and 21 deletions
10
shared/tests/files_test.py
Normal file
10
shared/tests/files_test.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from pathlib import Path
|
||||
|
||||
from libretime_shared.files import compute_md5
|
||||
|
||||
|
||||
def test_compute_md5(tmp_path: Path) -> None:
|
||||
tmp_file = tmp_path / "somefile.txt"
|
||||
tmp_file.write_text("some test")
|
||||
|
||||
assert compute_md5(tmp_file) == "f1b75ac7689ff88e1ecc40c84b115785"
|
Loading…
Add table
Add a link
Reference in a new issue