
    1h                    r    S SK Jr  S SKrS SKJrJr  S SKJrJr  S SK	J
r
JrJrJr  \" S5      r " S S\S	9rg)
    )annotationsN)ABCMetaabstractmethod)AsyncGeneratorIterable)AnyCallable	CoroutineTypeVar_Tc                      \ rS rSrSrSS jr        SS jr\SS j5       r\      SS j5       r	\      SS j5       r
\      SS j5       rS	rg
)
TestRunner   zf
Encapsulates a running event loop. Every call made through this object will use the same event
loop.
c                    U $ N selfs    J/var/www/auris/envauris/lib/python3.13/site-packages/anyio/abc/_testing.py	__enter__TestRunner.__enter__   s        c                $    U R                  5         g r   )close)r   exc_typeexc_valexc_tbs       r   __exit__TestRunner.__exit__   s     	

r   c                    g)zClose the event loop.Nr   r   s    r   r   TestRunner.close       r   c                    g)z
Run an async generator fixture.

:param fixture_func: the fixture function
:param kwargs: keyword arguments to call the fixture function with
:return: an iterator yielding the value yielded from the async generator
Nr   r   fixture_funckwargss      r   run_asyncgen_fixtureTestRunner.run_asyncgen_fixture!   r"   r   c                    g)z
Run an async fixture.

:param fixture_func: the fixture function
:param kwargs: keyword arguments to call the fixture function with
:return: the return value of the fixture function
Nr   r$   s      r   run_fixtureTestRunner.run_fixture/   r"   r   c                    g)z
Run an async test function.

:param test_func: the test function
:param kwargs: keyword arguments to call the test function with
Nr   )r   	test_funcr&   s      r   run_testTestRunner.run_test=   r"   r   r   N)returnr   )r   ztype[BaseException] | Noner   zBaseException | Noner   ztypes.TracebackType | Noner0   zbool | None)r0   None)r%   z&Callable[..., AsyncGenerator[_T, Any]]r&   dict[str, Any]r0   zIterable[_T])r%   z&Callable[..., Coroutine[Any, Any, _T]]r&   r2   r0   r   )r-   z'Callable[..., Coroutine[Any, Any, Any]]r&   r2   r0   r1   )__name__
__module____qualname____firstlineno____doc__r   r   r   r   r'   r*   r.   __static_attributes__r   r   r   r   r      s    
, & +	
 
 $ $ <  
	  <  
	  @JX	 r   r   )	metaclass)
__future__r   typesabcr   r   collections.abcr   r   typingr   r	   r
   r   r   r   r   r   r   <module>r?      s,    "  ' 4 4 4T];7 ;r   