We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c7a45 commit 00afcd9Copy full SHA for 00afcd9
mss/tests/conftest.py
@@ -4,7 +4,9 @@
4
"""
5
import glob
6
import os
7
+from hashlib import md5
8
from pathlib import Path
9
+from zipfile import ZipFile
10
11
import pytest
12
@@ -42,8 +44,12 @@ def before_tests(request):
42
44
43
45
@pytest.fixture(scope="session")
46
def raw() -> bytes:
- file = Path(__file__).parent / "res" / "monitor-1024x768.raw"
- 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
53
54
55
mss/tests/res/monitor-1024x768.raw
-3 MB
mss/tests/res/monitor-1024x768.raw.zip
36.9 KB
0 commit comments