Example #1
0
 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"
Example #2
0
 def test_context_add(self):
     sc = SaasConfig(temp_path)
     sc.add_context("foo", "x", "y", "z")
     sc.load()
     assert sc.context_exists("foo")