def test_client_notifications_error(client: SyncClient): with pytest.raises(exceptions.LoginRequired): next(client.get_unseen_notifications())
def test_client_notifications(auth_client: SyncClient): for notification in auth_client.get_unseen_notifications(): assert isinstance(notification, Notification)