-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from the-mama-ai/fix-preauth
Fix authenticated flag in a transfer adapter response
- Loading branch information
Showing
8 changed files
with
74 additions
and
49 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
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 |
---|---|---|
|
@@ -197,9 +197,14 @@ def test_github_identity_core() -> None: | |
user_dict = DEFAULT_USER_DICT | {"other_field": "other_value"} | ||
cache_cfg = DEFAULT_CONFIG.cache | ||
user = gh.GithubIdentity.from_dict(user_dict, cc=cache_cfg) | ||
assert (user.login, user.id, user.name, user.email) == DEFAULT_USER_ARGS | ||
assert ( | ||
user.id, | ||
user.github_id, | ||
user.name, | ||
user.email, | ||
) == DEFAULT_USER_ARGS | ||
assert all(arg in repr(user) for arg in DEFAULT_USER_ARGS[:3]) | ||
assert hash(user) == hash((user.login, user.id)) | ||
assert hash(user) == hash((user.id, user.github_id)) | ||
|
||
args2 = (*DEFAULT_USER_ARGS[:2], "spammer", "[email protected]") | ||
user2 = gh.GithubIdentity(*args2, cc=cache_cfg) | ||
|
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