1414async def test_get_chat_answer (async_chat_answers_service , async_created_chat_answer ):
1515 result = await async_chat_answers_service .get (async_created_chat_answer .id )
1616
17- assert result . id == async_created_chat_answer . id
17+ assert isinstance ( result , ChatAnswer )
1818
1919
2020async def test_list_chat_answers (async_chat_answers_service ):
@@ -27,7 +27,7 @@ async def test_list_chat_answers(async_chat_answers_service):
2727def test_create_chat_answer (async_created_chat_answer ):
2828 result = async_created_chat_answer
2929
30- assert result is not None
30+ assert isinstance ( result , ChatAnswer )
3131
3232
3333async def test_update_chat_answer (
@@ -37,22 +37,22 @@ async def test_update_chat_answer(
3737
3838 result = await async_chat_answers_service .update (async_created_chat_answer .id , update_data )
3939
40- assert result . id == async_created_chat_answer . id
40+ assert isinstance ( result , ChatAnswer )
4141 assert result .to_dict ().get ("name" ) == update_data ["name" ]
4242
4343
4444async def test_submit_chat_answer (async_chat_answers_service , async_created_chat_answer ):
4545 result = await async_chat_answers_service .submit (async_created_chat_answer .id )
4646
47- assert result is not None
47+ assert isinstance ( result , ChatAnswer )
4848
4949
5050async def test_query_chat_answer (async_chat_answers_service , async_created_chat_answer ):
5151 submitted_chat_answer = await async_chat_answers_service .submit (async_created_chat_answer .id )
5252
5353 result = await async_chat_answers_service .query (submitted_chat_answer .id )
5454
55- assert result is not None
55+ assert isinstance ( result , ChatAnswer )
5656
5757
5858async def test_validate_chat_answer (async_chat_answers_service , async_created_chat_answer ):
@@ -61,13 +61,13 @@ async def test_validate_chat_answer(async_chat_answers_service, async_created_ch
6161 {"parameters" : []},
6262 )
6363
64- assert result is not None
64+ assert isinstance ( result , ChatAnswer )
6565
6666
6767async def test_accept_chat_answer (async_chat_answers_service , async_created_chat_answer ):
6868 result = await async_chat_answers_service .accept (async_created_chat_answer .id )
6969
70- assert result is not None
70+ assert isinstance ( result , ChatAnswer )
7171
7272
7373async def test_delete_chat_answer (async_chat_answers_service , async_created_chat_answer ):
0 commit comments