- @doc """
- From _within a test case_, sets config to provided value and restores initial value on exit.
- For multi-case setup use `clear_config/2` instead.
- """
- def set_config(config_path, temp_setting) do
- initial_setting = Config.get(config_path)
- Config.put(config_path, temp_setting)
-
- ExUnit.Callbacks.on_exit(fn -> Config.put(config_path, initial_setting) end)
- end