# Path: wh_habitica/default.py
# AUTH_URL = 'url'
# AUTH_HEADER_CLIENT = 'x-api-user'
# AUTH_HEADER_TOKEN = 'x-api-key'
# API_HOST = 'https://habitica.com'
# API_BASE_URL = API_HOST + '/api/v3'
# GET_STATUS = API_BASE_URL + '/status'
# GET_USER = API_BASE_URL + '/user'
# GET_USER_ANONYMIZED = API_BASE_URL + '/user/anonymized'
# POST_TASK = API_BASE_URL + '/tasks/user/{id}/{direction}'
# JSON_STATUS = 'status'
# JSON_UP = 'up'
# JSON_DOWN = 'down'
# JSON_ID = 'id'
# JSON_DELTA = 'delta'
# JSON_BUFFS = 'buffs'
# JSON_AUTH = 'auth'
# JSON_LOCAL = 'local'
# JSON_FACEBOOK = 'facebook'
# JSON_GOOGLE = 'google'
# JSON_GOOGLE_EMAILS = 'emails'
# JSON_DISPLAY_NAME = 'displayName'
# JSON_FORMAT_JSON = '_json'
# JSON_USERNAME = 'username'
# JSON_EMAIL = 'email'
# JSON_NAME = 'name'
# JSON_VALUE = 'value'
# JSON_TYPE = 'type'


import pytest
from wh_habitica import default
        default.JSON_GOOGLE: {
            default.JSON_DISPLAY_NAME: GOOGLE_NAME,
            default.JSON_GOOGLE_EMAILS: [{default.JSON_TYPE: u'account', default.JSON_VALUE: USER_EMAIL}],
        }
    }
}
API_USER_INVALID = {
    default.JSON_ID: 42,
    default.JSON_AUTH: {
        default.JSON_FACEBOOK: {},
        default.JSON_GOOGLE: {},
        default.JSON_LOCAL: {},
        'Invalid_Provider': {default.JSON_USERNAME: LOCAL_NAME, default.JSON_EMAIL: USER_EMAIL},
    }
}
API_TASK = {default.JSON_DELTA: 1}


@pytest.fixture
def mock_habitica_api(monkeypatch):
    monkeypatch.setattr('habitica.api.Habitica.status', lambda x: API_STATUS_UP, raising=False)
    monkeypatch.setattr('habitica.api.Habitica.user', lambda x: API_USER, raising=False)
    monkeypatch.setattr('wh_habitica.api.HabiticaApi.post_task', lambda x, task_id: API_TASK, raising=False)


@pytest.fixture
def mock_habitica_api_facebook(monkeypatch):
    monkeypatch.setattr('habitica.api.Habitica.user', lambda x: API_USER_FACEBOOK, raising=False)



# Path: wh_habitica/default.py
# AUTH_URL = 'url'
# AUTH_HEADER_CLIENT = 'x-api-user'
# AUTH_HEADER_TOKEN = 'x-api-key'
# API_HOST = 'https://habitica.com'
# API_BASE_URL = API_HOST + '/api/v3'
# GET_STATUS = API_BASE_URL + '/status'
# GET_USER = API_BASE_URL + '/user'
# GET_USER_ANONYMIZED = API_BASE_URL + '/user/anonymized'
# POST_TASK = API_BASE_URL + '/tasks/user/{id}/{direction}'
# JSON_STATUS = 'status'
# JSON_UP = 'up'
# JSON_DOWN = 'down'
# JSON_ID = 'id'
# JSON_DELTA = 'delta'
# JSON_BUFFS = 'buffs'
# JSON_AUTH = 'auth'
# JSON_LOCAL = 'local'
# JSON_FACEBOOK = 'facebook'
# JSON_GOOGLE = 'google'
# JSON_GOOGLE_EMAILS = 'emails'
# JSON_DISPLAY_NAME = 'displayName'
# JSON_FORMAT_JSON = '_json'
# JSON_USERNAME = 'username'
# JSON_EMAIL = 'email'
# JSON_NAME = 'name'
# JSON_VALUE = 'value'
# JSON_TYPE = 'type'


# Path: wh_habitica/tests/utils.py
import pytest
from wh_habitica import default

        default.JSON_GOOGLE: {
            default.JSON_DISPLAY_NAME: GOOGLE_NAME,
            default.JSON_GOOGLE_EMAILS: [{default.JSON_TYPE: u'account', default.JSON_VALUE: USER_EMAIL}],
        }
    }
}
API_USER_INVALID = {
    default.JSON_ID: 42,
    default.JSON_AUTH: {
        default.JSON_FACEBOOK: {},
        default.JSON_GOOGLE: {},
        default.JSON_LOCAL: {},
        'Invalid_Provider': {default.JSON_USERNAME: LOCAL_NAME, default.JSON_EMAIL: USER_EMAIL},
    }
}
API_TASK = {default.JSON_DELTA: 1}


@pytest.fixture
def mock_habitica_api(monkeypatch):
    monkeypatch.setattr('habitica.api.Habitica.status', lambda x: API_STATUS_UP, raising=False)
    monkeypatch.setattr('habitica.api.Habitica.user', lambda x: API_USER, raising=False)
    monkeypatch.setattr('wh_habitica.api.HabiticaApi.post_task', lambda x, task_id: API_TASK, raising=False)


@pytest.fixture
def mock_habitica_api_facebook(monkeypatch):
    monkeypatch.setattr('habitica.api.Habitica.user', lambda x: API_USER_FACEBOOK, raising=False)



@pytest.fixture