
    8'h                     x    d Z ddlZddlZddlZddlZej
                  j                  d ed            d        Zy)z=
Separate file for multithreading since it takes time to run
    Nexecution_number
   c                    d}dt        j                         5 }t        |      D ](  }t              D ]  }|j                  d| d        * fd}t        |      D cg c]  }t	        j
                  d| |       }}|D ]  }|j                           |D ]  }|j                           	 d	d	d	       y	c c}w # 1 sw Y   y	xY w)
ztReruns test multiple times since error is random and
    depends on CPU and can lead to false positive result.

    r      http://example.com/exampleGET)urlmethodc                  V    t              D ]  } t        j                  d|          y )Nr   )rangerequestsget)req
n_requestss    _/var/www/html/trade_iq/venv/lib/python3.12/site-packages/responses/tests/test_multithreading.pyfunz%test_multithreading_lock.<locals>.fun   s-    Z( A9#?@A    example)nametargetN)	responsesRequestsMockr   add	threadingThreadstartjoin)	r   	n_threadsmjir   threadsthreadr   s	           @r   test_multithreading_lockr$      s     IJ				! Qy! 	JA:& J6qc:5IJ	J	A
 GLIFV
ABIGA3-<
 
  	FLLN	 	FKKM	 
 s   A	C#!B>0C>CC)	__doc__r   pytestr   r   markparametrizer   r$    r   r   <module>r*      sB        +U2Y7 8r   