]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
tests: test that environment keys are not changed by JSON serialisation
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 26 Mar 2024 10:35:13 +0000 (11:35 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 26 Mar 2024 10:38:04 +0000 (11:38 +0100)
tests/test_json.py

index 3cd112935a1cb9bdfe6d546cfe1a54450b87cf0b..4d8eaba2275f6f41d2cf86b667f38ac4f8b76ed3 100644 (file)
@@ -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 = [],