|
1 | 1 | from contextlib import AbstractContextManager |
2 | 2 | from dataclasses import dataclass |
| 3 | +from typing import Optional |
3 | 4 |
|
4 | 5 | from behave.model import Table |
5 | 6 | from behave.runner import Context as BehaveContext |
|
17 | 18 | @dataclass |
18 | 19 | class Context(BehaveContext): |
19 | 20 | base_url: str |
20 | | - headers: dict[str, dict[str, str]] = None |
21 | | - response: Response = None |
22 | | - table: Table = None |
23 | | - test_mode: TestMode = None |
24 | | - table_name: str = None |
25 | | - session: AbstractContextManager = None |
26 | | - dynamodb_client: DynamoDBClient = None |
27 | | - workspace: str = None |
28 | | - environment: str = None |
29 | | - workspace_type: str = None |
30 | | - api_key: str = None |
31 | | - notes: dict[str, str] = None |
32 | | - postman_endpoint: str = None |
| 21 | + headers: Optional[dict[str, dict[str, str]]] |
| 22 | + response: Optional[Response] |
| 23 | + table: Optional[Table] |
| 24 | + test_mode: Optional[TestMode] |
| 25 | + table_name: Optional[str] |
| 26 | + session: Optional[AbstractContextManager] |
| 27 | + dynamodb_client: Optional[DynamoDBClient] |
| 28 | + workspace: Optional[str] |
| 29 | + environment: Optional[str] |
| 30 | + workspace_type: Optional[str] |
| 31 | + api_key: Optional[str] |
| 32 | + notes: Optional[dict[str, str]] |
| 33 | + postman_endpoint: Optional[str] |
33 | 34 |
|
34 | 35 | postman_collection: PostmanCollection = None |
35 | 36 | postman_feature: PostmanItem = None |
|
0 commit comments