class_docstr: Test the interaction with the configuration file.
class_docstr_tok: ["Test","the","interaction","with","the","configuration","file","."]
docstr: Test that the default configuration file can be loaded
  from an environment variable.
docstr_tok: ["Test","that","the","default","configuration","file","can","be","loaded","from","an","environment","variable","."]
code: def test_loading_environment_variable(
      self, monkeypatch, default_config_toml
  ):
      """Test that the default configuration file can be loaded
      from an environment variable."""
      config_toml, config_path = default_config_toml
  
      os.curdir = "None"
      monkeypatch.setenv("PENNYLANE_CONF", os.getcwd())
  
      config = Configuration(name=config_path)
  
      assert config._config == config_toml
      assert config._env_config_dir == os.environ["PENNYLANE_CONF"]
      assert config.path == os.path.join(
          os.environ["PENNYLANE_CONF"], config_path
      )
  
imports: import os
  import pytest
  import toml
  import pennylane
  from pennylane import Configuration
label_desc: Use image node_id 2 for calling the TestConfigurationFileInteraction obj's underlying member method code with example usage: obj.test_loading_environment_variable(monkeypatch, default_config_toml) without return types