
    Oja                        d dl mZ d dlZd dlZd dlmZmZ d dlmZm	Z	m
Z
mZ d dlmZmZ ej                  dk\  rd dlmZ nd dlmZ  ed      Z G d	 d
e      Zy)    )annotationsN)ABCMetaabstractmethod)AsyncGeneratorCallable	CoroutineIterable)AnyTypeVar)      )Self_Tc                      e Zd ZdZd	dZe	 	 	 	 	 	 	 	 d
d       Ze	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 dd       Z	edd       Z
y)
TestRunnerzr
    Encapsulates a running event loop. Every call made through this object will use the
    same event loop.
    c                    | S N selfs    i/var/www/origus_pro_usr/data/www/origus.pro/core/.venv/lib/python3.12/site-packages/anyio/abc/_testing.py	__enter__zTestRunner.__enter__   s        c                     y r   r   )r   exc_typeexc_valexc_tbs       r   __exit__zTestRunner.__exit__   s     r   c                     y)a   
        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_fixturezTestRunner.run_asyncgen_fixture"       r   c                     y)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_fixturezTestRunner.run_fixture0   r$   r   c                     y)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_testzTestRunner.run_test>   r$   r   c                     y)z
        Check if the test runner is running.

        :return: ``True`` if the coroutine is currently being run, ``False`` otherwise.
        Nr   r   s    r   
is_runningzTestRunner.is_runningI   r$   r   N)returnr   )r   ztype[BaseException] | Noner   zBaseException | Noner   ztypes.TracebackType | Noner,   zbool | None)r!   z&Callable[..., AsyncGenerator[_T, Any]]r"   dict[str, Any]r,   zIterable[_T])r!   z&Callable[..., Coroutine[Any, Any, _T]]r"   r-   r,   r   )r(   z'Callable[..., Coroutine[Any, Any, Any]]r"   r-   r,   None)r,   bool)__name__
__module____qualname____doc__r   r   r   r#   r&   r)   r+   r   r   r   r   r      s    
 , & +	
 
  <  
	  <  
	  @JX	   r   r   )	metaclass)
__future__r   systypesabcr   r   collections.abcr   r   r   r	   typingr
   r   version_infor   typing_extensionsr   r   r   r   r   <module>r=      sC    " 
  ' I I w&T]>7 >r   