Skip to content

Commit 4f999a6

Browse files
MakeilaLunJenkins
authored andcommitted
test config variable disk data round trip and validation
CMK-37088 Change-Id: Id7f3539b8bc9ce230a7bb2841c8bd30cd6a3318a
1 parent b917384 commit 4f999a6

6 files changed

Lines changed: 1985 additions & 38 deletions

File tree

tests/testlib/gui/common_fixtures.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,5 +285,9 @@ def patch_theme_context() -> Iterator[None]:
285285
"cmk.gui.theme.choices.theme_choices",
286286
return_value=[("modern-dark", "dark ut"), ("facelift", "light ut")],
287287
),
288+
patch(
289+
"cmk.gui.wato._check_mk_configuration.theme_choices",
290+
return_value=[("modern-dark", "dark ut"), ("facelift", "light ut")],
291+
),
288292
):
289293
yield

tests/testlib/unit/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ py_library(
3838
"//cmk/gui/watolib:config_infra",
3939
"//cmk/gui/watolib:password_store",
4040
"//packages/cmk-crash:crash",
41+
"//tests/testlib:fake_site",
4142
"//tests/testlib:rest_api_client",
4243
"//tests/testlib/common:empty_config",
4344
"//tests/testlib/common:repo",

0 commit comments

Comments
 (0)