dry_tests.models package
Submodules
dry_tests.models.content module
Content models
dry_tests.models.context module
Context models
dry_tests.models.forms module
Form models
dry_tests.models.requests module
Requests Models
- class dry_tests.models.requests.Request(url: str | Url, method: Literal['get', 'post'] = 'get', data: dict | None = None)[source]
Bases:
object
Main Request Model
- data: dict = None
- get_response(client)[source]
get response with test client :param client: Request client :return: client response
- method: Literal['get', 'post'] = 'get'
dry_tests.models.responses module
Response models
- class dry_tests.models.responses.TrueResponse(status_code: int | None = None, redirect_url: str | Url | None = None, content_values: list | None = None, context: Context | dict | None = None, created: Model | None = None)[source]
Bases:
object
Main Excepted Response Model
- content_values: list = None
- created: Model = None
- status_code: int = None
dry_tests.models.urls module
Urls models
Module contents
Package with core models