コード例 #1
0
ファイル: test_client.py プロジェクト: takos22/codingame
def test_client_get_codingamer(client: SyncClient, codingamer_query):
    codingamer = client.get_codingamer(codingamer_query)
    assert isinstance(codingamer, CodinGamer)
コード例 #2
0
ファイル: test_client.py プロジェクト: takos22/codingame
def test_client_get_codingamer_error(client: SyncClient, codingamer_query):
    with pytest.raises(exceptions.CodinGamerNotFound):
        client.get_codingamer(codingamer_query)