-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. adjust email_validator for the new version (disable call for dns q… (
#65) * 1. adjust email_validator for the new version 1.3.0 (disable call for dns queries). 2. adjust the tests for method that changed from get to post * fix definition of argument (list[str]) to be compatible with python 3.7, 3.8 * set allow_redirect=False to all Post calls
- Loading branch information
1 parent
44620c3
commit 0554936
Showing
12 changed files
with
50 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,6 +258,7 @@ def test_sign_in_cross_device(self): | |
"crossDevice": True, | ||
} | ||
), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertEqual(res["pendingRef"], "aaaa") | ||
|
@@ -291,6 +292,7 @@ def test_sign_up_cross_device(self): | |
"email": "[email protected]", | ||
} | ||
), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertEqual(res["pendingRef"], "aaaa") | ||
|
@@ -321,6 +323,7 @@ def test_sign_up_or_in_cross_device(self): | |
"crossDevice": True, | ||
} | ||
), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,6 +123,7 @@ def test_update_user(self): | |
"Authorization": f"Bearer {self.dummy_project_id}:{valid_jwt_token}", | ||
}, | ||
data=json.dumps({"externalId": "[email protected]"}), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertEqual(res, valid_response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,7 @@ def test_sign_up_start(self): | |
data=json.dumps( | ||
{"user": {"externalId": "id1"}, "origin": "https://example.com"} | ||
), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertEqual(res, valid_response) | ||
|
@@ -145,6 +146,7 @@ def test_sign_up_finish(self): | |
"Authorization": f"Bearer {self.dummy_project_id}", | ||
}, | ||
data=json.dumps({"transactionId": "t01", "response": "response01"}), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertIsNotNone(webauthn.sign_up_finish("t01", "response01")) | ||
|
@@ -191,6 +193,7 @@ def test_sign_in_start(self): | |
"Authorization": f"Bearer {self.dummy_project_id}", | ||
}, | ||
data=json.dumps({"externalId": "id1", "origin": "https://example.com"}), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertEqual(res, valid_response), | ||
|
@@ -230,6 +233,7 @@ def test_sign_in_finish(self): | |
"Authorization": f"Bearer {self.dummy_project_id}", | ||
}, | ||
data=json.dumps({"transactionId": "t01", "response": "response01"}), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertIsNotNone(webauthn.sign_up_finish("t01", "response01")) | ||
|
@@ -298,6 +302,7 @@ def test_update_start(self): | |
data=json.dumps( | ||
{"externalId": "[email protected]", "origin": "https://example.com"} | ||
), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertEqual(res, valid_response) | ||
|
@@ -336,6 +341,7 @@ def test_update_finish(self): | |
"Authorization": f"Bearer {self.dummy_project_id}", | ||
}, | ||
data=json.dumps({"transactionId": "t01", "response": "response01"}), | ||
allow_redirects=False, | ||
verify=True, | ||
) | ||
self.assertIsNotNone(webauthn.sign_up_finish("t01", "response01")) | ||
|