File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1717import requests
1818
1919from cloudevents .core .bindings .http import (
20- CloudEvent ,
2120 to_binary_event ,
2221 to_structured_event ,
2322)
23+ from cloudevents .core .v1 .event import CloudEvent
2424
2525resp = requests .get (
2626 "https://raw.githubusercontent.com/cncf/artwork/master/projects/cloudevents/horizontal/color/cloudevents-horizontal-color.png" # noqa
Original file line number Diff line number Diff line change 2222from PIL import Image
2323
2424from cloudevents .core .bindings .http import (
25- CloudEvent ,
2625 from_http_event ,
2726 to_binary_event ,
2827 to_structured_event ,
2928)
29+ from cloudevents .core .v1 .event import CloudEvent
3030
3131image_fileobj = io .BytesIO (image_bytes )
3232image_expected_shape = (1880 , 363 )
Original file line number Diff line number Diff line change 1717import requests
1818
1919from cloudevents .core .bindings .http import (
20- CloudEvent ,
2120 to_binary_event ,
2221 to_structured_event ,
2322)
23+ from cloudevents .core .v1 .event import CloudEvent
2424
2525
2626def send_binary_cloud_event (url ):
Original file line number Diff line number Diff line change 1616from json_sample_server import app
1717
1818from cloudevents .core .bindings .http import (
19- CloudEvent ,
2019 to_binary_event ,
2120 to_structured_event ,
2221)
22+ from cloudevents .core .v1 .event import CloudEvent
2323
2424
2525@pytest .fixture
You can’t perform that action at this time.
0 commit comments