def test_env_vars(self):
        with pytest.raises(ValidationError):
            os.environ['VALUE'] = "one"
            c = load_configuration("test/config_assets/config.yml", "test/config_assets/parameters_2.yml", [Bundle()])

        os.environ['VALUE'] = "from env"
        c = load_configuration("test/config_assets/config.yml", "test/config_assets/parameters_2.yml", [Bundle()])
        assert c.test.value == "From Env"
    def test_validation_error_case(self):
        with pytest.raises(ValidationError):
            # Testing validation annotation
            load_configuration("test/config_assets/config.yml", "test/config_assets/parameters.yml", [Bundle()])

        with pytest.raises(ValidationError):
            # Testing wrong data type
            load_configuration("test/config_assets/config_3.yml", "test/config_assets/parameters_2.yml", [Bundle()])
 def test_empty_config(self):
     with pytest.raises(KeyError):
         load_configuration("test/config_assets/config.yml", "test/config_assets/empty.yml", [Bundle()])
 def test_extra_config(self):
     c = load_configuration("test/config_assets/config_2.yml", "test/config_assets/parameters_2.yml", [Bundle()])
     assert c.test.value == "Two Words"
     assert c.test.number == 2