Skip to content

Commit

Permalink
tests.siegfried:identify_many - use SiegfriedResult.files_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Jun 19, 2024
1 parent 4f644fa commit 183fc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_siegfried.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def test_identify(siegfried: Siegfried, test_files: Path, test_files_data: dict[
def test_identify_many(siegfried: Siegfried, test_files: Path, test_files_data: dict[str, dict]):
results = siegfried.identify(*(test_files / filename for filename in test_files_data.keys()))
assert {f.filename.name for f in results.files} == {*test_files_data.keys()}
for result in results.files:
file_data = test_files_data[result.filename.name]
for path, result in results.files_dict.items():
file_data = test_files_data[path.name]
assert result.filesize == file_data["filesize"]
assert result.matches
assert (
Expand Down

0 comments on commit 183fc31

Please sign in to comment.