Skip to content

Commit

Permalink
chore: Add SerializedCase.cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Jun 13, 2021
1 parent 01064a7 commit b6b3c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.rst
Expand Up @@ -8,6 +8,7 @@ Changelog

- ``ExecutionEvent.asdict`` adds the ``event_type`` field which is the event class name.
- Add API schema to the ``Initialized`` event.
- **Internal**: Add ``SerializedCase.cookies``

`3.9.0`_ - 2021-06-07
---------------------
Expand Down
2 changes: 2 additions & 0 deletions src/schemathesis/runner/serialization.py
Expand Up @@ -21,6 +21,7 @@ class SerializedCase:
path_template: str = attr.ib()
path_parameters: Optional[Dict[str, Any]] = attr.ib()
query: Optional[Dict[str, Any]] = attr.ib()
cookies: Optional[Dict[str, Any]] = attr.ib()
verbose_name: str = attr.ib()
media_type: Optional[str] = attr.ib()

Expand All @@ -33,6 +34,7 @@ def from_case(cls, case: Case, headers: Optional[Dict[str, Any]]) -> "Serialized
path_template=case.path,
path_parameters=case.path_parameters,
query=case.query,
cookies=case.cookies,
verbose_name=case.operation.verbose_name,
media_type=case.media_type,
)
Expand Down

0 comments on commit b6b3c59

Please sign in to comment.