Unverified Commit 84d6971d authored by davelopez's avatar davelopez
Browse files

Use random user in test

Since we cannot remove the user from the group to restore its previous state we need to use a user that will not be part of other tests to avoid unwanted interactions.
parent fbf903d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -101,8 +101,9 @@ class TestGroupsApi(ApiTestCase):
        )

        # Add another user to the group
        another_user_email = f"user-{self.dataset_populator.get_random_name()}@example.com"
        another_user_id = None
        with self._different_user():
        with self._different_user(another_user_email):
            another_user_id = self.dataset_populator.user_id()
            another_role_id = self.dataset_populator.user_private_role_id()
        assert another_user_id is not None