Skip to content

Commit adb20fd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f7f2d6e commit adb20fd

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

cloudevents/tests/test_pydantic_cloudevent.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,9 @@ def test_json_data_serialization_with_explicit_json_content_type(
233233
dummy_attributes, json_content_type
234234
):
235235
dummy_attributes["datacontenttype"] = json_content_type
236-
assert (
237-
loads(
238-
CloudEvent(
239-
dummy_attributes,
240-
data='{"hello": "world"}',
241-
).json()
242-
)["data"]
243-
== {"hello": "world"}
244-
)
236+
assert loads(CloudEvent(dummy_attributes, data='{"hello": "world"}',).json())[
237+
"data"
238+
] == {"hello": "world"}
245239

246240

247241
@pytest.fixture(

0 commit comments

Comments
 (0)