From 9b63d38c5a24dbee861c2ce233d408cb65bbe4f0 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:21:13 +0900 Subject: [PATCH 1/3] chore: more granular test namespaces --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 5b491f5..f13c6c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,6 +109,7 @@ config-settings-package = { pygobject-stubs = { config = "Gtk3,Gdk3,Soup2" } } markers = [ "apitest: checks remote endpoints", "config: config file keys/values", + "realconfig: depends on actual generated local config file", "mods: tests mod metadata/link creation", "pefile: validate PE files", "post_install: requires a completed installation", From 3f037cdad6b24417d68a24a422e615048ca5a06c Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:21:39 +0900 Subject: [PATCH 2/3] chore: add realconfig namespace to local file tests --- tests/test_config.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index 3beaf03..8eca3ac 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -7,13 +7,12 @@ from dzgui.config.xdg import get_xdg_paths, parse_filepaths from dzgui.config import convert from tests.fixtures import fixture_path -pytestmark = pytest.mark.config - @pytest.fixture def legacy_config(): return fixture_path("dztuirc_1") + @pytest.fixture def unset_values(): return fixture_path("dztuirc_3") @@ -38,6 +37,7 @@ def keys(): # TODO: use a static fixture instead of system config @pytest.fixture +@pytest.mark.realconfig def config(): paths = get_xdg_paths() xdg = parse_filepaths(paths) @@ -45,18 +45,21 @@ def config(): @pytest.mark.post_install +@pytest.mark.realconfig def test_invalid_config_value(config): with pytest.raises(Exception): assert config["foo"] is None @pytest.mark.post_install +@pytest.mark.realconfig def test_default_config_values(keys, config): for key in keys: assert config[key] is not None @pytest.mark.post_install +@pytest.mark.realconfig def test_contains_invalid_values(keys, config): for key in config: assert key in keys @@ -91,6 +94,7 @@ def test_key_conversion(legacy_config): for key in keys: assert key not in j + def test_missing_values(unset_values): j = convert.rc2json(unset_values) j = json.loads(j) From b70428fe3d6cb4e24493500a40ef4cd6108a3a68 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:21:56 +0900 Subject: [PATCH 3/3] chore: BM API is expected to fail (#417) --- tests/test_remote_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_remote_api.py b/tests/test_remote_api.py index e47a4d6..4e76b26 100644 --- a/tests/test_remote_api.py +++ b/tests/test_remote_api.py @@ -13,13 +13,17 @@ def config(): xdg = parse_filepaths(paths) return get_config(xdg.config) + def test_ipdb(): assert probe.test_ipdb() + def test_steam(config): key = config["steam_api"] assert probe.test_steam_api(key) + def test_bm(config): + # NOTE: see ticket #417; expected to return False key = config["bm_api"] - assert probe.test_bm_api(key) + assert probe.test_bm_api(key) is False