Googleapiclient test fix (#1372)

* Fix tests with apiclient >= 2.1

* disable MacOS 11 job
This commit is contained in:
Jay Lee
2021-04-26 07:35:07 -04:00
committed by GitHub
parent b43ada4f83
commit eece358aec
4 changed files with 17 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ from unittest.mock import patch
from gam import SetGlobalVariables
import gam.gapi as gapi
from gam.gapi import errors
import httplib2
def create_http_error(status, reason, message):
@@ -21,10 +22,10 @@ def create_http_error(status, reason, message):
Returns:
googleapiclient.errors.HttpError
"""
response = {
response = httplib2.Response({
'status': status,
'content-type': 'application/json',
}
})
content = {
'error': {
'code': status,