Skip to content

Commit 00afcd9

Browse files
committed
tests: compress monitor-1024x768.raw
1 parent d5c7a45 commit 00afcd9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

mss/tests/conftest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"""
55
import glob
66
import os
7+
from hashlib import md5
78
from pathlib import Path
9+
from zipfile import ZipFile
810

911
import pytest
1012

@@ -42,8 +44,12 @@ def before_tests(request):
4244

4345
@pytest.fixture(scope="session")
4446
def raw() -> bytes:
45-
file = Path(__file__).parent / "res" / "monitor-1024x768.raw"
46-
return file.read_bytes()
47+
file = Path(__file__).parent / "res" / "monitor-1024x768.raw.zip"
48+
with ZipFile(file) as fh:
49+
data = fh.read(file.with_suffix("").name)
50+
51+
assert md5(data).hexdigest() == "125696266e2a8f5240f6bc17e4df98c6"
52+
return data
4753

4854

4955
@pytest.fixture(scope="session")

mss/tests/res/monitor-1024x768.raw

-3 MB
Binary file not shown.
36.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)