コード例 #1
0
ファイル: test_client.py プロジェクト: takos22/codingame
def test_client_notifications_error(client: SyncClient):
    with pytest.raises(exceptions.LoginRequired):
        next(client.get_unseen_notifications())
コード例 #2
0
ファイル: test_client.py プロジェクト: takos22/codingame
def test_client_notifications(auth_client: SyncClient):
    for notification in auth_client.get_unseen_notifications():
        assert isinstance(notification, Notification)