def test_patch_level2_no_patching(): p2a = load(p2.path, patchable=False) assert "patches" in p2a assert_dotted_key_matches("config.env", p2d, p2a) assert_dotted_key_matches("config.branch", p2d, p2a) assert_dotted_key_matches("projects.comp2.version_type", p2d, p2a) assert_dotted_key_matches("projects.comp3.version_type", p2d, p2a) assert_dotted_key_matches("projects.comp1.version_type", ConfigDict(), p2a)
def test_patch_level2(): p2a = load(p2.path) assert "patches" not in p2a assert_dotted_key_matches("config.env", p2d, p2a) assert_dotted_key_matches("config.branch", p2d, p2a) assert_dotted_key_matches("projects.comp1.version_type", p1d, p2a) assert_dotted_key_matches("projects.comp2.version_type", p2d, p2a) assert_dotted_key_matches("projects.comp3.version_type", p2d, p2a)