F,` d dl Z d dlZd dlZd dlmZmZmZmZmZm Z m
Z
mZ d dlZd dl
mZ d dlmZ ddlmZmZmZmZmZmZmZmZ d dlZn
# e$ r dZY nw xY weeeef gee f Zeegee f Zeegee f Zd Z d Z!ej" d Z#ej" d
Z$ej% d Z&ej% dd
Z'd Z(d Z)d Z*ej" d Z+ej" d Z,ej" deg e-f deg e-f fd Zej" deg e-f fd Z.ej" de j/ dee fd Z0ej" d Z1ej" de j/ dee fd Z2ej" d Z3ej" de j/ dee fd Z4ej" d Z5dS ) N)Any AwaitableCallableDictIteratorOptionalTypeUnion)isasyncgenfunction)Application )BaseTestServer
RawTestServer
TestClient
TestServerloop_contextsetup_test_loopteardown_test_loopunused_portc | dddd | dddd | d
ddd d S )N--aiohttp-fast
store_trueFz*run tests faster by disabling extra checks)actiondefaulthelpz--aiohttp-loopstorepyloopz3run tests with specific loop: pyloop, uvloop or all--aiohttp-enable-loop-debugzenable event loop debug mode) addoption)parsers i/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/aiohttp/pytest_plugin.pypytest_addoptionr" s
9
B %
+ c | j t rdnt j rdndS dd| j vr| xj dz
c_ dfd}|| _ dS )zjSet up pytest fixture.
Allow fixtures to be coroutines. Run coroutine fixtures in an event loop.
TFNrequestr% c J |d }r|d= d|j vrt d | d rJ | i |fd}| | S | i | S )Nr% loopz^Asynchronous fixtures must depend on the 'loop' fixture or be used in tests depending from it.c v S # t $ r Y d S w xY wN)run_until_complete __anext__StopAsyncIteration)_loopgens r! finalizerz8pytest_fixture_setup.