# Path: google/auth/_default_async.py
# def load_credentials_from_file(filename, scopes=None, quota_project_id=None):
# def _get_gcloud_sdk_credentials(quota_project_id=None):
# def _get_explicit_environ_credentials(quota_project_id=None):
# def _get_gae_credentials():
# def _get_gce_credentials(request=None):
# def default_async(scopes=None, request=None, quota_project_id=None):


import os
import pytest
from google.auth import _default_async
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.



EXPECT_PROJECT_ID = os.environ.get("EXPECT_PROJECT_ID")

@pytest.mark.asyncio
async def test_application_default_credentials(verify_refresh):
    credentials, project_id = _default_async.default_async()


# Path: google/auth/_default_async.py
# def load_credentials_from_file(filename, scopes=None, quota_project_id=None):
# def _get_gcloud_sdk_credentials(quota_project_id=None):
# def _get_explicit_environ_credentials(quota_project_id=None):
# def _get_gae_credentials():
# def _get_gce_credentials(request=None):
# def default_async(scopes=None, request=None, quota_project_id=None):


# Path: system_tests/system_tests_async/test_default.py
import os
import pytest
from google.auth import _default_async

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.



EXPECT_PROJECT_ID = os.environ.get("EXPECT_PROJECT_ID")

@pytest.mark.asyncio
async def test_application_default_credentials(verify_refresh):
    credentials, project_id = _default_async.default_async()


    if EXPECT_PROJECT_ID is not None: