From c94e46c4961bcca7f9a287c61ee74a8d00d1abbe Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 17 Nov 2020 16:03:20 +0100 Subject: [PATCH] Fix pre-commit --- tests/fixtures/gigya/account_info.json | 60 +++++++++++++------------- tests/fixtures/gigya/get_jwt.json | 14 +++--- tests/fixtures/gigya/login.json | 58 ++++++++++++------------- tests/fixtures/gigya/login_failed.json | 14 +++--- tests/model/test_gigya.py | 2 +- 5 files changed, 73 insertions(+), 75 deletions(-) diff --git a/tests/fixtures/gigya/account_info.json b/tests/fixtures/gigya/account_info.json index 2a2243a6..6eec3ca1 100644 --- a/tests/fixtures/gigya/account_info.json +++ b/tests/fixtures/gigya/account_info.json @@ -1,42 +1,40 @@ { "callId": "callId", - "errorCode": 0, - "apiVersion": 2, - "statusCode": 200, - "statusReason": "OK", - "time": "2020-11-10T08:31:02.748Z", - "registeredTimestamp": 1556570377000, - "UID": "UID", - "UIDSignature": "UIDSignature=", - "signatureTimestamp": "1604997062", - "created": "2019-04-29T20:39:36.880Z", - "createdTimestamp": 1556570376000, + "errorCode": 0, + "apiVersion": 2, + "statusCode": 200, + "statusReason": "OK", + "time": "2020-11-10T08:31:02.748Z", + "registeredTimestamp": 1556570377000, + "UID": "UID", + "UIDSignature": "UIDSignature=", + "signatureTimestamp": "1604997062", + "created": "2019-04-29T20:39:36.880Z", + "createdTimestamp": 1556570376000, "data": { - "personId": "person-id-1", + "personId": "person-id-1", "gigyaDataCenter": "gigyaDataCenter" }, - "preferences": {}, + "preferences": {}, "emails": { - "verified": [ - "email@email.com" - ], + "verified": ["email@email.com"], "unverified": [] - }, - "isActive": true, - "isRegistered": true, - "isVerified": true, - "lastLogin": "2020-11-10T08:31:02.595Z", - "lastLoginTimestamp": 1604997062000, - "lastUpdated": "2019-04-29T20:40:39.441Z", - "lastUpdatedTimestamp": 1556570439441, - "loginProvider": "site", - "oldestDataUpdated": "2019-04-29T20:39:36.880Z", - "oldestDataUpdatedTimestamp": 1556570376880, + }, + "isActive": true, + "isRegistered": true, + "isVerified": true, + "lastLogin": "2020-11-10T08:31:02.595Z", + "lastLoginTimestamp": 1604997062000, + "lastUpdated": "2019-04-29T20:40:39.441Z", + "lastUpdatedTimestamp": 1556570439441, + "loginProvider": "site", + "oldestDataUpdated": "2019-04-29T20:39:36.880Z", + "oldestDataUpdatedTimestamp": 1556570376880, "profile": { "email": "email@email.com" - }, - "registered": "2019-04-29T20:39:37.022Z", - "socialProviders": "site", - "verified": "2019-04-29T20:40:39.441Z", + }, + "registered": "2019-04-29T20:39:37.022Z", + "socialProviders": "site", + "verified": "2019-04-29T20:40:39.441Z", "verifiedTimestamp": 1556570439441 } diff --git a/tests/fixtures/gigya/get_jwt.json b/tests/fixtures/gigya/get_jwt.json index aa1f3822..1ab17ecf 100644 --- a/tests/fixtures/gigya/get_jwt.json +++ b/tests/fixtures/gigya/get_jwt.json @@ -1,10 +1,10 @@ { - "callId": "callId", - "errorCode": 0, - "apiVersion": 2, - "statusCode": 200, - "statusReason": "OK", - "time": "2020-11-10T08:31:02.872Z", - "ignoredFields": "", + "callId": "callId", + "errorCode": 0, + "apiVersion": 2, + "statusCode": 200, + "statusReason": "OK", + "time": "2020-11-10T08:31:02.872Z", + "ignoredFields": "", "id_token": "sample-jwt-token" } diff --git a/tests/fixtures/gigya/login.json b/tests/fixtures/gigya/login.json index 4c38f55f..b1c8d6d0 100644 --- a/tests/fixtures/gigya/login.json +++ b/tests/fixtures/gigya/login.json @@ -1,36 +1,36 @@ { - "callId": "callId", - "errorCode": 0, - "apiVersion": 2, - "statusCode": 200, - "statusReason": "OK", - "time": "2020-11-10T08:31:02.637Z", - "registeredTimestamp": 1556570377, - "UID": "UID", - "UIDSignature": "UIDSignature=", - "signatureTimestamp": "1604997062", - "created": "2019-04-29T20:39:36.880Z", - "createdTimestamp": 1556570376, - "isActive": true, - "isRegistered": true, - "isVerified": true, - "lastLogin": "2020-11-10T08:31:02.595Z", - "lastLoginTimestamp": 1604997062, - "lastUpdated": "2019-04-29T20:40:39.441Z", - "lastUpdatedTimestamp": 1556570439441, - "loginProvider": "site", - "oldestDataUpdated": "2019-04-29T20:39:36.880Z", - "oldestDataUpdatedTimestamp": 1556570376880, + "callId": "callId", + "errorCode": 0, + "apiVersion": 2, + "statusCode": 200, + "statusReason": "OK", + "time": "2020-11-10T08:31:02.637Z", + "registeredTimestamp": 1556570377, + "UID": "UID", + "UIDSignature": "UIDSignature=", + "signatureTimestamp": "1604997062", + "created": "2019-04-29T20:39:36.880Z", + "createdTimestamp": 1556570376, + "isActive": true, + "isRegistered": true, + "isVerified": true, + "lastLogin": "2020-11-10T08:31:02.595Z", + "lastLoginTimestamp": 1604997062, + "lastUpdated": "2019-04-29T20:40:39.441Z", + "lastUpdatedTimestamp": 1556570439441, + "loginProvider": "site", + "oldestDataUpdated": "2019-04-29T20:39:36.880Z", + "oldestDataUpdatedTimestamp": 1556570376880, "profile": { "email": "email@email.com" - }, - "registered": "2019-04-29T20:39:37.022Z", - "socialProviders": "site", - "verified": "2019-04-29T20:40:39.441Z", - "verifiedTimestamp": 1556570439441, - "newUser": false, + }, + "registered": "2019-04-29T20:39:37.022Z", + "socialProviders": "site", + "verified": "2019-04-29T20:40:39.441Z", + "verifiedTimestamp": 1556570439441, + "newUser": false, "sessionInfo": { - "cookieName": "cookieName", + "cookieName": "cookieName", "cookieValue": "sample-cookie-value" } } diff --git a/tests/fixtures/gigya/login_failed.json b/tests/fixtures/gigya/login_failed.json index 4174228d..b44b2367 100644 --- a/tests/fixtures/gigya/login_failed.json +++ b/tests/fixtures/gigya/login_failed.json @@ -1,10 +1,10 @@ { - "callId": "callId", - "errorCode": 403042, - "errorDetails": "invalid loginID or password", - "errorMessage": "Invalid LoginID", - "apiVersion": 2, - "statusCode": 403, - "statusReason": "Forbidden", + "callId": "callId", + "errorCode": 403042, + "errorDetails": "invalid loginID or password", + "errorMessage": "Invalid LoginID", + "apiVersion": 2, + "statusCode": 403, + "statusReason": "Forbidden", "time": "2020-11-17T08:22:36.561Z" } diff --git a/tests/model/test_gigya.py b/tests/model/test_gigya.py index ccace28c..1fad7ddc 100644 --- a/tests/model/test_gigya.py +++ b/tests/model/test_gigya.py @@ -1,9 +1,9 @@ """Tests for RenaultClient.""" from typing import Any from typing import Type -from marshmallow.schema import Schema import pytest +from marshmallow.schema import Schema from renault_api.exceptions import GigyaResponseException from renault_api.model.gigya import GigyaGetAccountInfoResponse