test__get_breakdown#




Functions#

request_breakdown

Do an async GET /breakdown request for a word_id.

send_async__get_breakdown__requests_for_ids

Do a GET /breakdown request for each word id in the argument

test__get_breakdown__return_only_200_and_404

Run GET /breakdown for several batches of word ids and assert that they all return with status code 200 or 404.

request_breakdown()#

async tests.smoke_tests.test__get_breakdown.request_breakdown(word_id: int) -> (<class 'httpx.Response'>, <class 'int'>)[source]#

Do an async GET /breakdown request for a word_id.

Returns

  • the httpx.Response object from the async request

  • the word_id used to make the request

send_async__get_breakdown__requests_for_ids()#

tests.smoke_tests.test__get_breakdown.send_async__get_breakdown__requests_for_ids(word_ids: List[int]) List[Tuple[httpx.Response, int]][source]#

Do a GET /breakdown request for each word id in the argument

Returns: List:
  • first item in a tuple is the httpx.Response object

  • second item is the word_id used to make the request

test__get_breakdown__return_only_200_and_404()#

tests.smoke_tests.test__get_breakdown.test__get_breakdown__return_only_200_and_404()[source]#

Run GET /breakdown for several batches of word ids and assert that they all return with status code 200 or 404.