def test_switch_context(self): sc = SaasConfig(temp_path) sc.add_context("foo", "x", "y", "z") sc.switch_context("foo") assert sc.config["current"] == "foo"
def test_context_add(self): sc = SaasConfig(temp_path) sc.add_context("foo", "x", "y", "z") sc.load() assert sc.context_exists("foo")