From: Jörg Behrmann Date: Tue, 26 Mar 2024 10:35:13 +0000 (+0100) Subject: tests: test that environment keys are not changed by JSON serialisation X-Git-Tag: v23~58^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be5ea6c66dc909c57a67ec70a52aebeeaaf8eef;p=thirdparty%2Fmkosi.git tests: test that environment keys are not changed by JSON serialisation --- diff --git a/tests/test_json.py b/tests/test_json.py index 3cd112935..4d8eaba22 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -121,7 +121,11 @@ def test_config() -> None: "dep1" ], "Distribution": "fedora", - "Environment": {}, + "Environment": { + "BAR": "BAR", + "Qux": "Qux", + "foo": "foo" + }, "EnvironmentFiles": [], "Ephemeral": true, "ExtraSearchPaths": [], @@ -348,7 +352,7 @@ def test_config() -> None: credentials = {"credkey": "credval"}, dependencies = ("dep1",), distribution = Distribution.fedora, - environment = {}, + environment = {"foo": "foo", "BAR": "BAR", "Qux": "Qux"}, environment_files = [], ephemeral = True, extra_search_paths = [],