feat(analyzer): move compute_md5 to shared library

This commit is contained in:
jo 2022-06-15 15:56:52 +02:00 committed by Kyle Robbertze
parent c0bddf83a8
commit be9f36dbdc
4 changed files with 29 additions and 21 deletions

View file

@ -2,7 +2,7 @@ from pathlib import Path
import pytest
from libretime_analyzer.pipeline.analyze_metadata import analyze_metadata, compute_md5
from libretime_analyzer.pipeline.analyze_metadata import analyze_metadata
from ..fixtures import FILE_INVALID_DRM, FILE_INVALID_TXT, FILES_TAGGED
@ -48,7 +48,3 @@ def test_analyze_metadata_unparsable_file():
"hidden": False,
"md5": "4d5e4b1c8e8febbd31fa9ce7f088beae",
}
def test_compute_md5():
assert compute_md5(FILE_INVALID_TXT) == "4d5e4b1c8e8febbd31fa9ce7f088beae"