Format: application/x-python-code
1 o
2
3 ;'h � @ sj d dl mZ d dlZd dlmZmZ d dlmZmZm Z m
4 Z
5 d dlmZm
6 Z
7 e
8 d�ZG dd� ded �ZdS )
9 � )�annotationsN)�ABCMeta�abstractmethod)�AsyncGenerator�Callable� Coroutine�Iterable)�Any�TypeVar�_Tc @ sR e Zd ZdZddd�Zed dd
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 �returnc C s | S �N� )�selfr r �HC:\Users\shubh\Videos\agent\nova\Lib\site-packages\anyio/abc/_testing.py� __enter__ s zTestRunner.__enter__�exc_type�type[BaseException] | None�exc_val�BaseException | None�exc_tb�types.TracebackType | None�bool | Nonec C s d S r r )r r r r r r r �__exit__ s zTestRunner.__exit__�fixture_func�&Callable[..., AsyncGenerator[_T, Any]]�kwargs�dict[str, Any]�Iterable[_T]c C � 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 �r r r r r r �run_asyncgen_fixture � zTestRunner.run_asyncgen_fixture�&Callable[..., Coroutine[Any, Any, _T]]r c C r )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 Nr r! r r r �run_fixture* r# zTestRunner.run_fixture� test_func�'Callable[..., Coroutine[Any, Any, Any]]�Nonec C r )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 )r r&