File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
sdk/eventgrid/azure-eventgrid Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11recursive-include tests *.py *.yaml
2+ recursive-include samples *.py
23include *.md
34include azure/__init__.py
45
Original file line number Diff line number Diff line change 7575 zip_safe = False ,
7676 packages = find_packages (exclude = [
7777 'tests' ,
78+ 'samples' ,
7879 # Exclude packages that will be covered by PEP420 or nspkg
7980 'azure' ,
8081 ]),
Original file line number Diff line number Diff line change 3636 "specversion" :"1.0"
3737}
3838cloud_storage_string = json .dumps (cloud_storage_dict )
39- cloud_storage_bytes = bytes ( cloud_storage_string , "utf-8" )
39+ cloud_storage_bytes = cloud_storage_string . encode ( "utf-8" )
4040
4141# custom cloud event
4242cloud_custom_dict = {
4848 "specversion" :"1.0"
4949}
5050cloud_custom_string = json .dumps (cloud_custom_dict )
51- cloud_custom_bytes = bytes ( cloud_custom_string , "utf-8" )
51+ cloud_custom_bytes = cloud_custom_string . encode ( "utf-8" )
5252
5353# storage eg event
5454eg_storage_dict = {
7474}
7575
7676eg_storage_string = json .dumps (eg_storage_dict )
77- eg_storage_bytes = bytes ( eg_storage_string , "utf-8" )
77+ eg_storage_bytes = eg_storage_string . encode ( "utf-8" )
7878
7979# custom eg event
8080eg_custom_dict = {
8888 "topic" :"/subscriptions/f8aa80ae-d1c8-60ad-9bce-e1a850ba5b67/resourceGroups/sample-resource-group-test/providers/Microsoft.EventGrid/topics/egtopicsamplesub"
8989}
9090eg_custom_string = json .dumps (eg_custom_dict )
91- eg_custom_bytes = bytes ( eg_custom_string , "utf-8" )
91+ eg_custom_bytes = eg_custom_string . encode ( "utf-8" )
9292
9393class EventGridConsumerTests (AzureMgmtTestCase ):
9494
You can’t perform that action at this time.
0 commit comments