cU;Ia d dl Z d dlZd dlZd dlmZ d dlmZmZmZmZm Z m
Z
mZ d dlZd dl
mZmZ d dlmZ ddlmZmZmZmZmZmZmZmZ d dlZn
# e$ r dZY nw xY w d dlZn
# e$ r dZY nw xY weeeef gee 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" d Zej" d Z-ej" d Z.ej" d Z/ej" d Z0ej" d Z1ej" de j2 de eddf fd Z3ej" d Z4dS ) N)Callable)Any Awaitabler Dict GeneratorOptionalUnion)PY_37isasyncgenfunction)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-loopstorepyloopz:run tests with specific loop: pyloop, uvloop, tokio or all--aiohttp-enable-loop-debugzenable event loop debug mode) addoption)parsers w/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/aiohttp/pytest_plugin.pypytest_addoptionr" $ s
9
I %
+ 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.