Format: application/x-python-code
⬇ Download File (2.5 KB)
   1  o
   2  
   3  ;'h�@sjddlmZddlZddlmZmZddlmZmZm	Z	m
   4  Z
   5  ddlmZm
   6  Z
   7  e
   8  d�ZGdd�ded	�ZdS)
   9  �)�annotationsN)�ABCMeta�abstractmethod)�AsyncGenerator�Callable�	Coroutine�Iterable)�Any�TypeVar�_Tc@sReZdZdZddd�Zed dd
  10  ��Zed!dd��Zed"dd��Zed#dd��Z	dS)$�
  11  TestRunnerzr
  12      Encapsulates a running event loop. Every call made through this object will use the
  13      same event loop.
  14      �returncCs|S�N�)�selfrr�HC:\Users\shubh\Videos\agent\nova\Lib\site-packages\anyio/abc/_testing.py�	__enter__szTestRunner.__enter__�exc_type�type[BaseException] | None�exc_val�BaseException | None�exc_tb�types.TracebackType | None�bool | NonecCsdSrr)rrrrrrr�__exit__szTestRunner.__exit__�fixture_func�&Callable[..., AsyncGenerator[_T, Any]]�kwargs�dict[str, Any]�Iterable[_T]cC�dS)a
  15          Run an async generator fixture.
  16  
  17          :param fixture_func: the fixture function
  18          :param kwargs: keyword arguments to call the fixture function with
  19          :return: an iterator yielding the value yielded from the async generator
  20          Nr�rrrrrr�run_asyncgen_fixture�zTestRunner.run_asyncgen_fixture�&Callable[..., Coroutine[Any, Any, _T]]rcCr )z�
  21          Run an async fixture.
  22  
  23          :param fixture_func: the fixture function
  24          :param kwargs: keyword arguments to call the fixture function with
  25          :return: the return value of the fixture function
  26          Nrr!rrr�run_fixture*r#zTestRunner.run_fixture�	test_func�'Callable[..., Coroutine[Any, Any, Any]]�NonecCr )z�
  27          Run an async test function.
  28  
  29          :param test_func: the test function
  30          :param kwargs: keyword arguments to call the test function with
  31          Nr)rr&rrrr�run_test8r#zTestRunner.run_testN)r
  32  r)rrrrrrr
  33  r)rrrrr
  34  r)rr$rrr
  35  r)r&r'rrr
  36  r()
  37  �__name__�
  38  __module__�__qualname__�__doc__rrrr"r%r)rrrrrs
  39  
  40  
  41  r)�	metaclass)�
  42  __future__r�types�abcrr�collections.abcrrrr�typingr	r
  43  rrrrrr�<module>s