def METHOD_NAME(self, project):
    config_builds_not_enabled = f"""
    projects_and_groups:
      {project.path_with_namespace}:
        project_settings:
          builds_access_level: disabled
        variables:
          foo:
            key: FOO
            value: 123
    """
    run_gitlabform(config_builds_not_enabled, project)
    with pytest.raises(GitlabListError):
        # variables will NOT be available without builds_access_level in ['private', 'enabled']
        project.variables.list()