File tree 3 files changed +6
-4
lines changed
sdk/eventgrid/azure-eventgrid
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
recursive-include tests *.py *.yaml
2
+ recursive-include samples *.py
2
3
include *.md
3
4
include azure/__init__.py
4
5
Original file line number Diff line number Diff line change 75
75
zip_safe = False ,
76
76
packages = find_packages (exclude = [
77
77
'tests' ,
78
+ 'samples' ,
78
79
# Exclude packages that will be covered by PEP420 or nspkg
79
80
'azure' ,
80
81
]),
Original file line number Diff line number Diff line change 36
36
"specversion" :"1.0"
37
37
}
38
38
cloud_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" )
40
40
41
41
# custom cloud event
42
42
cloud_custom_dict = {
48
48
"specversion" :"1.0"
49
49
}
50
50
cloud_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" )
52
52
53
53
# storage eg event
54
54
eg_storage_dict = {
74
74
}
75
75
76
76
eg_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" )
78
78
79
79
# custom eg event
80
80
eg_custom_dict = {
88
88
"topic" :"/subscriptions/f8aa80ae-d1c8-60ad-9bce-e1a850ba5b67/resourceGroups/sample-resource-group-test/providers/Microsoft.EventGrid/topics/egtopicsamplesub"
89
89
}
90
90
eg_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" )
92
92
93
93
class EventGridConsumerTests (AzureMgmtTestCase ):
94
94
You can’t perform that action at this time.
0 commit comments