def overrides_can_skip_merging(self): c = Config() c.load_overrides({"foo": "bar"}, merge=False) assert "foo" not in c c.merge() assert c.foo == "bar"
def overrides_can_be_given_via_method(self): c = Config(defaults={"foo": "bar"}) assert c.foo == "bar" # defaults level c.load_overrides({"foo": "notbar"}) assert c.foo == "notbar" # overrides level