def METHOD_NAME(invalid_instance_env_variables):
    with pytest.raises(ValueError) as exc:
        with patch('tyr.helper.create_repositories', fake_create_repositories):
            load_instance_config("fr-se-lyon")
        assert "Config is not valid for instance fr-se-lyon" in str(exc.value)
        assert "'492' is not of type 'number'" in str(exc.value)