-
-
Notifications
You must be signed in to change notification settings - Fork 94
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 #128 from nekokatt/task/rename-user-flags
Renamed some user flags.
- Loading branch information
Showing
2 changed files
with
20 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2900,7 +2900,7 @@ def my_user_payload(self): | |
"locale": "en-US", | ||
"mfa_enabled": True, | ||
"public_flags": int(user_models.UserFlag.EARLY_VERIFIED_DEVELOPER), | ||
"flags": int(user_models.UserFlag.DISCORD_PARTNER | user_models.UserFlag.DISCORD_EMPLOYEE), | ||
"flags": int(user_models.UserFlag.PARTNERED_SERVER_OWNER | user_models.UserFlag.DISCORD_EMPLOYEE), | ||
"premium_type": 1, | ||
} | ||
|
||
|
@@ -2917,7 +2917,7 @@ def test_deserialize_my_user(self, entity_factory_impl, mock_app, my_user_payloa | |
assert my_user.locale == "en-US" | ||
assert my_user.is_verified is True | ||
assert my_user.email == "[email protected]" | ||
assert my_user.flags == user_models.UserFlag.DISCORD_PARTNER | user_models.UserFlag.DISCORD_EMPLOYEE | ||
assert my_user.flags == user_models.UserFlag.PARTNERED_SERVER_OWNER | user_models.UserFlag.DISCORD_EMPLOYEE | ||
assert my_user.premium_type is user_models.PremiumType.NITRO_CLASSIC | ||
assert isinstance(my_user, user_models.OwnUser) | ||
|
||
|
@@ -2931,7 +2931,7 @@ def test_deserialize_my_user_with_unset_fields(self, entity_factory_impl, mock_a | |
"locale": "en-US", | ||
"mfa_enabled": True, | ||
"public_flags": int(user_models.UserFlag.EARLY_VERIFIED_DEVELOPER), | ||
"flags": int(user_models.UserFlag.DISCORD_PARTNER | user_models.UserFlag.DISCORD_EMPLOYEE), | ||
"flags": int(user_models.UserFlag.PARTNERED_SERVER_OWNER | user_models.UserFlag.DISCORD_EMPLOYEE), | ||
"premium_type": 1, | ||
} | ||
) | ||
|