Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str Str Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Dict Dict Assert CompareIs AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareIn Str NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad decorator_list FunctionDef arguments args defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str Str Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Dict Dict keyword Num keyword NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad NameLoad Index Str NameLoad decorator_list
N/A N/A Module containing tests for requests_toolbelt.threaded API. N/A mock N/A pytest requests_toolbelt._compat queue requests_toolbelt threaded test_creates_a_pool_for_the_user N/A N/A N/A N/A N/A Assert a Pool object is used correctly and as we expect.

    This just ensures that we're not jumping through any extra hoops with our
    internal usage of a Pool object.
     N/A mocked_pool N/A N/A mock Mock spec N/A join_all responses exceptions N/A N/A N/A mock patch requests_toolbelt.threaded.pool.Pool Pool N/A N/A N/A Pool return_value mocked_pool N/A N/A N/A threaded map N/A N/A N/A N/A N/A N/A Pool called True N/A N/A _ kwargs N/A Pool call_args N/A N/A job_queue kwargs N/A N/A isinstance N/A kwargs N/A job_queue N/A queue Queue N/A N/A N/A N/A mocked_pool join_all assert_called_once_with N/A N/A N/A N/A mocked_pool responses assert_called_once_with N/A N/A N/A N/A mocked_pool exceptions assert_called_once_with N/A test_raises_a_value_error_for_non_dictionaries N/A N/A N/A N/A N/A Exercise our lazy valdation. N/A N/A N/A pytest raises ValueError N/A N/A N/A N/A threaded map N/A N/A N/A N/A test_raises_a_value_error_for_falsey_requests N/A N/A N/A N/A N/A Assert that the requests param is truthy. N/A N/A N/A pytest raises ValueError N/A N/A N/A N/A threaded map N/A N/A N/A N/A pytest raises ValueError N/A N/A N/A N/A threaded map None N/A test_passes_on_kwargs N/A N/A N/A N/A N/A Verify that we pass on kwargs to the Pool constructor. N/A mocked_pool N/A N/A mock Mock spec N/A join_all responses exceptions N/A N/A N/A mock patch requests_toolbelt.threaded.pool.Pool Pool N/A N/A N/A Pool return_value mocked_pool N/A N/A N/A threaded map N/A N/A N/A num_processes 1000 initializer test_passes_on_kwargs N/A N/A _ kwargs N/A Pool call_args N/A N/A job_queue kwargs N/A N/A num_processes kwargs N/A N/A initializer kwargs N/A N/A N/A kwargs N/A num_processes 1000 N/A N/A N/A kwargs N/A initializer test_passes_on_kwargs N/A