diff --git a/docs/changelog.rst b/docs/changelog.rst index 19cac15681..3d03151321 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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 --------------------- diff --git a/src/schemathesis/runner/serialization.py b/src/schemathesis/runner/serialization.py index 7228fc8d52..4e172d200d 100644 --- a/src/schemathesis/runner/serialization.py +++ b/src/schemathesis/runner/serialization.py @@ -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() @@ -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, )