Files
wg-backend-django/acer-env/lib/python3.10/site-packages/asgiref/__pycache__/testing.cpython-310.pyc

42 lines
3.1 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>Ԅc/ <00>@s:ddlZddlZddlmZddlmZGdd<06>d<06>ZdS)<07>N<>)<01>guarantee_single_callable)<01>timeoutc@sPeZdZdZdd<03>Zddd<06>Zddd <09>Zd
d <0B>Zd d <0A>Zddd<0F>Z ddd<13>Z
dS)<18>ApplicationCommunicatorz}
Runs an ASGI application in a test mode, allowing sending of
messages to it and retrieval of messages it sends.
cCsFt|<01>|_||_t<03><04>|_t<03><04>|_t<03>|<00>||jj|jj <09><03>|_
dS<00>N) r<00> application<6F>scope<70>asyncio<69>Queue<75> input_queue<75> output_queue<75> ensure_future<72>get<65>put<75>future)<03>selfrr<00>r<00>b/home/infidel/Sync/Project/ocp-wg-backend/acer-env/lib/python3.10/site-packages/asgiref/testing.py<70>__init__s



<EFBFBD>z ApplicationCommunicator.__init__rc<00>s<><00>zXt|<01>4IdH<00>#z |jIdH|j<01><02>Wn
tjy"YnwWd<00>IdHn 1IdHs3wYW|j<01><05>sX|j<01><06>z |jIdHWdStjyWYdSwdS|j<01><05>sw|j<01><06>z|jIdHWwtjyvYwww)zV
Waits for the application to stop itself and returns any exceptions.
N)<07> async_timeoutr<00>resultr <00>CancelledError<6F>done<6E>cancel)rrrrr<00>waits6<02> <02><02>(<28><02>

<02><0E>
<02><02>zApplicationCommunicator.waitTcCs.|j<00><01>s |j<00><02>dS|r|j<00><03>dSdSr)rrrr)r<00>
exceptionsrrr<00>stop*s
<04>zApplicationCommunicator.stopcCs(z |jdd<02>WdStyYdSw)NF)r)r<00> RuntimeError)rrrr<00>__del__1s
 <02>zApplicationCommunicator.__del__c<00>s<00>|j<00>|<01>IdHdS)z;
Sends a single message to the application
N)r r)r<00>messagerrr<00>
send_input9s<02>z"ApplicationCommunicator.send_inputc <00>s<><00>|j<00><01>r |j<00><02>z*t|<01>4IdH<00>|j<04><05>IdHWd<00>IdHWS1IdHs.wYWdStjyh}z&|j<00><01>rJ|j<00><02>|<02>|j<00><08>z |jIdHW|<02>tj ycY|<02>wd}~ww)zX
Receives a single message from the application, with optional timeout.
N)
rrrrr rr <00> TimeoutErrorrr)rr<00>errr<00>receive_output@s*<02>

4<>


<EFBFBD><0E><02><08><02>z&ApplicationCommunicator.receive_output皙<74><E79A99><EFBFBD><EFBFBD><EFBFBD>?<3F>{<14>G<EFBFBD>z<EFBFBD>?c<00>sR<00>t<00><01>}t<00><01>||kr$|j<02><03>sdSt<04>|<02>IdHt<00><01>||ks |j<02><03>S)zO
Checks that there is no message to receive in the given time.
FN)<06>time<6D> monotonicr <00>emptyr <00>sleep)rr<00>interval<61>startrrr<00>receive_nothingWs<02>
<10>
z'ApplicationCommunicator.receive_nothingN)r)T)r$r%) <0B>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rrrrr r#r,rrrrrs

r)r r&<00> compatibilityrrrrrrrr<00><module>s