diff options
| author | 2021-08-31 18:49:21 +0200 | |
|---|---|---|
| committer | 2021-11-26 21:14:16 +0100 | |
| commit | 9d255dcf3daafde71071ad75b000077a861da659 (patch) | |
| tree | 228930edf11e9e5b0d8a1a678be8661c3d251901 /pydis_site/apps | |
| parent | Add test to check role unassignment (diff) | |
Patch roles test to use fresh instance from the DB
Diffstat (limited to 'pydis_site/apps')
| -rw-r--r-- | pydis_site/apps/api/tests/test_roles.py | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/pydis_site/apps/api/tests/test_roles.py b/pydis_site/apps/api/tests/test_roles.py index 7c968852..88c0256b 100644 --- a/pydis_site/apps/api/tests/test_roles.py +++ b/pydis_site/apps/api/tests/test_roles.py @@ -199,6 +199,7 @@ class CreationTests(AuthenticatedAPITestCase):      def test_role_delete_unassigned(self):          """Tests if the deleted Role gets unassigned from the user."""          self.role_to_delete.delete() +        self.role_unassigned_test_user.refresh_from_db()          self.assertEqual(self.role_unassigned_test_user.roles, [])      def test_role_detail_404_all_methods(self): | 
