← back to Atmos Game

assets/gen/.venv/lib/python3.12/site-packages/anyio/abc/__pycache__/_testing.cpython-312.pyc

41 lines

�

c�bj���x�ddlmZddlZddlmZmZddlmZmZm	Z	m
Z
ddlmZm
Z
e
d�ZGd�de�	�Zy)
�)�annotationsN)�ABCMeta�abstractmethod)�AsyncGenerator�Callable�	Coroutine�Iterable)�Any�TypeVar�_Tc��eZdZdZd	d�Ze								d
d��Ze						dd��Ze						dd��Ze						d
d��Z	edd��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/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/anyio/abc/_testing.py�	__enter__zTestRunner.__enter__s����c��yrr)r�exc_type�exc_val�exc_tbs    r�__exit__zTestRunner.__exit__s��rc��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_fixturezTestRunner.run_asyncgen_fixture��rc��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
        Nrrs   r�run_fixturezTestRunner.run_fixture*r!rc��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_funcrs   r�run_testzTestRunner.run_test8r!rc��y)z�
        Check if the test runner is running.

        :return: ``True`` if the coroutine is currently being run, ``False`` otherwise.
        Nrrs r�
is_runningzTestRunner.is_runningCr!rN)�returnr)rztype[BaseException] | NonerzBaseException | Nonerztypes.TracebackType | Noner)zbool | None)rz&Callable[..., AsyncGenerator[_T, Any]]r�dict[str, Any]r)zIterable[_T])rz&Callable[..., Coroutine[Any, Any, _T]]rr*r)r)r%z'Callable[..., Coroutine[Any, Any, Any]]rr*r)�None)r)�bool)�__name__�
__module__�__qualname__�__doc__rrrr r#r&r(rrrrrs����
���,��&��+�	�

������<����
�	�����<����
�	�����@��JX��	
�������rr)�	metaclass)�
__future__r�types�abcrr�collections.abcrrrr	�typingr
rrrrrr�<module>r7s,��"��'�I�I���T�]��>�7�>r