File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 17
17
import pytest
18
18
from pydantic import ValidationError
19
19
20
- import cloudevents .exceptions as cloud_exceptions
21
20
from cloudevents .http .util import _json_or_string
22
21
from cloudevents .pydantic import CloudEvent
23
22
@@ -234,9 +233,15 @@ def test_json_data_serialization_with_explicit_json_content_type(
234
233
dummy_attributes , json_content_type
235
234
):
236
235
dummy_attributes ["datacontenttype" ] = json_content_type
237
- assert loads (CloudEvent (dummy_attributes , data = '{"hello": "world"}' ,).json ())[
238
- "data"
239
- ] == {"hello" : "world" }
236
+ assert (
237
+ loads (
238
+ CloudEvent (
239
+ dummy_attributes ,
240
+ data = '{"hello": "world"}' ,
241
+ ).json ()
242
+ )["data" ]
243
+ == {"hello" : "world" }
244
+ )
240
245
241
246
242
247
@pytest .fixture (
You can’t perform that action at this time.
0 commit comments