def METHOD_NAME(self) -> None:
    try:
        self.response = dev_update_subgroups(
            HostRequestMock({"add": orjson.dumps(self.subgroup_ids).decode()}),
            iago,
            user_group_id=self.supergroup_id,
        )
    finally:
        # Close all thread-local database connections
        connections.close_all()