diff options
author | 2020-06-05 12:52:13 +0100 | |
---|---|---|
committer | 2020-06-05 12:52:13 +0100 | |
commit | 386bae54dfa3b674522315ad44e9d56f0db89588 (patch) | |
tree | 052f45522f809b7dd2ff38a0ce004a3229214868 /pydis_site/apps/api/tests | |
parent | Update navbar for Code Jam 7 (diff) | |
parent | Remove very generous newline in role validator (diff) |
Merge pull request #357 from python-discord/joseph/change-roles-field-to-postgres-array
Change roles field on user model to Postgres array
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r-- | pydis_site/apps/api/tests/test_users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/tests/test_users.py b/pydis_site/apps/api/tests/test_users.py index 4f563dc6..4c0f6e27 100644 --- a/pydis_site/apps/api/tests/test_users.py +++ b/pydis_site/apps/api/tests/test_users.py @@ -146,7 +146,7 @@ class UserModelTests(APISubdomainTestCase): discriminator=1111, in_guild=True, ) - cls.user_with_roles.roles.add(cls.role_bottom, cls.role_top) + cls.user_with_roles.roles.extend([cls.role_bottom.id, cls.role_top.id]) cls.user_without_roles = User.objects.create( id=2, |