Skip to content

Commit a434ada

Browse files
daandemeyerbehrmann
authored andcommitted
Verify that two instances of MkosiConfig.default() are always equal
1 parent 0370ba2 commit a434ada

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from mkosi.config import (
1515
Compression,
1616
ConfigFeature,
17+
MkosiConfig,
1718
OutputFormat,
1819
Verb,
1920
config_parse_bytes,
@@ -641,3 +642,7 @@ def test_specifiers(tmp_path: Path) -> None:
641642
}
642643

643644
assert {k: v for k, v in config.environment.items() if k in expected} == expected
645+
646+
647+
def test_deterministic() -> None:
648+
assert MkosiConfig.default() == MkosiConfig.default()

0 commit comments

Comments
 (0)