Skip to content

Commit 92a97af

Browse files
committed
lint
1 parent 1da1819 commit 92a97af

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,4 @@ def pypy(session):
176176
"--cov=tests",
177177
"tests",
178178
"tests_async",
179-
)
179+
)

tests/test__default.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@
154154
DATA_DIR, "impersonated_service_account_service_account_source.json"
155155
)
156156

157-
IMPERSONATED_SERVICE_ACCOUNT_EXTERNAL_ACCOUNT_AUTHORIZED_USER_SOURCE_FILE = os.path.join(
158-
DATA_DIR,
159-
"impersonated_service_account_external_account_authorized_user_source.json",
157+
IMPERSONATED_SERVICE_ACCOUNT_EXTERNAL_ACCOUNT_AUTHORIZED_USER_SOURCE_FILE = (
158+
os.path.join(
159+
DATA_DIR,
160+
"impersonated_service_account_external_account_authorized_user_source.json",
161+
)
160162
)
161163

162164
EXTERNAL_ACCOUNT_AUTHORIZED_USER_FILE = os.path.join(
@@ -399,7 +401,6 @@ def test_load_credentials_from_file_impersonated_passing_scopes():
399401

400402

401403
def test_load_credentials_from_file_impersonated_wrong_target_principal(tmpdir):
402-
403404
with open(IMPERSONATED_SERVICE_ACCOUNT_AUTHORIZED_USER_SOURCE_FILE) as fh:
404405
impersonated_credentials_info = json.load(fh)
405406
impersonated_credentials_info[
@@ -415,7 +416,6 @@ def test_load_credentials_from_file_impersonated_wrong_target_principal(tmpdir):
415416

416417

417418
def test_load_credentials_from_file_impersonated_wrong_source_type(tmpdir):
418-
419419
with open(IMPERSONATED_SERVICE_ACCOUNT_AUTHORIZED_USER_SOURCE_FILE) as fh:
420420
impersonated_credentials_info = json.load(fh)
421421
impersonated_credentials_info["source_credentials"]["type"] = "external_account"
@@ -1326,7 +1326,7 @@ def test_default_impersonated_service_account_set_default_scopes(get_adc_path):
13261326
"google.auth._cloud_sdk.get_application_default_credentials_path", autospec=True
13271327
)
13281328
def test_default_impersonated_service_account_set_both_scopes_and_default_scopes(
1329-
get_adc_path
1329+
get_adc_path,
13301330
):
13311331
get_adc_path.return_value = IMPERSONATED_SERVICE_ACCOUNT_AUTHORIZED_USER_SOURCE_FILE
13321332
scopes = ["scope1", "scope2"]
@@ -1411,6 +1411,8 @@ def test_quota_gce_credentials(unused_get, unused_ping):
14111411
quota_project_id=explicit_quota
14121412
)
14131413
assert credentials.quota_project_id == explicit_quota
1414+
1415+
14141416
def test_load_credentials_from_file_deprecation_warning():
14151417
with pytest.warns(
14161418
DeprecationWarning, match="The load_credentials_from_file method is deprecated"
@@ -1459,4 +1461,4 @@ def test_get_explicit_environ_credentials_suppresses_deprecation_warning(monkeyp
14591461
isinstance(w.message, DeprecationWarning)
14601462
and "load_credentials_from_file" in str(w.message)
14611463
for w in caught_warnings
1462-
)
1464+
)

0 commit comments

Comments
 (0)