# Path: pandas_gbq/auth.py
# CREDENTIALS_CACHE_DIRNAME = "pandas_gbq"
# CREDENTIALS_CACHE_FILENAME = "bigquery_credentials.dat"
# SCOPES = ["https://www.googleapis.com/auth/bigquery"]
# CLIENT_ID = "725825577420-unm2gnkiprugilg743tkbig250f4sfsj.apps.googleusercontent.com"
# CLIENT_SECRET = "4hqze9yI8fxShls8eJWkeMdJ"
# def get_credentials(
#     private_key=None, project_id=None, reauth=False, auth_local_webserver=False
# ):
# def get_credentials_cache(reauth):


import json
import pytest
    import google.auth
    import google.auth.credentials
    import google.cloud.bigquery
    import pydata_google_auth
    import google.auth
    import google.auth.credentials
    import pydata_google_auth
    import pydata_google_auth.cache
    import pydata_google_auth.cache
from unittest import mock
from pandas_gbq import auth
def test_get_credentials_default_credentials(monkeypatch):

    mock_user_credentials = mock.create_autospec(google.auth.credentials.Credentials)

    def mock_default_credentials(scopes, **kwargs):
        return (mock_user_credentials, "test-project")

    monkeypatch.setattr(pydata_google_auth, "default", mock_default_credentials)

    credentials, project = auth.get_credentials()
    assert project == "test-project"
    assert credentials is not None


def test_get_credentials_load_user_no_default(monkeypatch):

    mock_user_credentials = mock.create_autospec(google.auth.credentials.Credentials)

    def mock_default_credentials(scopes, **kwargs):
        return (mock_user_credentials, None)

    monkeypatch.setattr(pydata_google_auth, "default", mock_default_credentials)

    credentials, project = auth.get_credentials()
    assert project is None
    assert credentials is mock_user_credentials


def test_get_credentials_cache_w_reauth():


# Path: pandas_gbq/auth.py
# CREDENTIALS_CACHE_DIRNAME = "pandas_gbq"
# CREDENTIALS_CACHE_FILENAME = "bigquery_credentials.dat"
# SCOPES = ["https://www.googleapis.com/auth/bigquery"]
# CLIENT_ID = "725825577420-unm2gnkiprugilg743tkbig250f4sfsj.apps.googleusercontent.com"
# CLIENT_SECRET = "4hqze9yI8fxShls8eJWkeMdJ"
# def get_credentials(
#     private_key=None, project_id=None, reauth=False, auth_local_webserver=False
# ):
# def get_credentials_cache(reauth):


# Path: tests/unit/test_auth.py
import json
import pytest
    import google.auth
    import google.auth.credentials
    import google.cloud.bigquery
    import pydata_google_auth
    import google.auth
    import google.auth.credentials
    import pydata_google_auth
    import pydata_google_auth.cache
    import pydata_google_auth.cache
from unittest import mock
from pandas_gbq import auth

def test_get_credentials_default_credentials(monkeypatch):

    mock_user_credentials = mock.create_autospec(google.auth.credentials.Credentials)

    def mock_default_credentials(scopes, **kwargs):
        return (mock_user_credentials, "test-project")

    monkeypatch.setattr(pydata_google_auth, "default", mock_default_credentials)

    credentials, project = auth.get_credentials()
    assert project == "test-project"
    assert credentials is not None


def test_get_credentials_load_user_no_default(monkeypatch):

    mock_user_credentials = mock.create_autospec(google.auth.credentials.Credentials)

    def mock_default_credentials(scopes, **kwargs):
        return (mock_user_credentials, None)

    monkeypatch.setattr(pydata_google_auth, "default", mock_default_credentials)

    credentials, project = auth.get_credentials()
    assert project is None
    assert credentials is mock_user_credentials


def test_get_credentials_cache_w_reauth():


    cache = auth.get_credentials_cache(True)