pakjoy: Add more hardcoded IDs and fix tests

This commit is contained in:
Florian Bruhin 2024-07-12 16:00:52 +02:00
parent bcf792a0dc
commit 2088ecebd9
2 changed files with 6 additions and 0 deletions

View File

@ -38,12 +38,16 @@ from qutebrowser.utils import qtutils, standarddir, version, utils, log
HANGOUTS_MARKER = b"// Extension ID: nkeimhogjdpnpccoofpliimaahmaaome"
HANGOUTS_IDS = [
# Linux
41262, # QtWebEngine 6.7
36197, # QtWebEngine 6.6
34897, # QtWebEngine 6.5
32707, # QtWebEngine 6.4
27537, # QtWebEngine 6.3
23607, # QtWebEngine 6.2
248, # macOS
381, # Windows
]
PAK_VERSION = 5
RESOURCES_ENV_VAR = "QTWEBENGINE_RESOURCES_PATH"

View File

@ -195,6 +195,7 @@ def read_patched_manifest():
class TestWithRealResourcesFile:
"""Tests that use the real pak file form the Qt installation."""
@pytest.mark.qt6_only
def test_happy_path(self):
# Go through the full patching processes with the real resources file from
# the current installation. Make sure our replacement string is in it
@ -254,6 +255,7 @@ class TestWithRealResourcesFile:
"Not applying quirks. Expected location: "
)
@pytest.mark.qt6_only
def test_hardcoded_ids(self):
"""Make sure we hardcoded the currently valid ID.