Skip to content

Commit 81935fc

Browse files
committed
test: remove unused import
Signed-off-by: Alexander Tkachev <[email protected]>
1 parent 5452151 commit 81935fc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

cloudevents/tests/test_pydantic_cloudevent.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import pytest
1818
from pydantic import ValidationError
1919

20-
import cloudevents.exceptions as cloud_exceptions
2120
from cloudevents.http.util import _json_or_string
2221
from cloudevents.pydantic import CloudEvent
2322

@@ -234,9 +233,15 @@ def test_json_data_serialization_with_explicit_json_content_type(
234233
dummy_attributes, json_content_type
235234
):
236235
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+
)
240245

241246

242247
@pytest.fixture(

0 commit comments

Comments
 (0)