File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 102
102
'BlobSource'
103
103
)
104
104
105
- __version__ = '1.21.0 '
105
+ __version__ = '1.21.1 '
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def __init__(self,
17
17
** kwargs ):
18
18
self .path = path
19
19
self .connection = connection
20
- self .source = source
20
+ self .source = source . value if source else None
21
21
super ().__init__ (name = name , data_type = data_type )
22
22
23
23
@staticmethod
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def test_blob_trigger_creation_with_default_specified_source(self):
42
42
"name" : "req" ,
43
43
"dataType" : DataType .UNDEFINED ,
44
44
"path" : "dummy_path" ,
45
- 'source' : BlobSource . LOGS_AND_CONTAINER_SCAN ,
45
+ 'source' : 'LogsAndContainerScan' ,
46
46
"connection" : "dummy_connection"
47
47
})
48
48
@@ -62,7 +62,7 @@ def test_blob_trigger_creation_with_source_as_string(self):
62
62
"name" : "req" ,
63
63
"dataType" : DataType .UNDEFINED ,
64
64
"path" : "dummy_path" ,
65
- 'source' : BlobSource . EVENT_GRID ,
65
+ 'source' : 'EventGrid' ,
66
66
"connection" : "dummy_connection"
67
67
})
68
68
@@ -82,7 +82,7 @@ def test_blob_trigger_creation_with_source_as_enum(self):
82
82
"name" : "req" ,
83
83
"dataType" : DataType .UNDEFINED ,
84
84
"path" : "dummy_path" ,
85
- 'source' : BlobSource . EVENT_GRID ,
85
+ 'source' : 'EventGrid' ,
86
86
"connection" : "dummy_connection"
87
87
})
88
88
Original file line number Diff line number Diff line change @@ -1628,7 +1628,7 @@ def test_blob_input_binding():
1628
1628
"type" : BLOB_TRIGGER ,
1629
1629
"name" : "req" ,
1630
1630
"path" : "dummy_path" ,
1631
- "source" : BlobSource . EVENT_GRID ,
1631
+ "source" : 'EventGrid' ,
1632
1632
"connection" : "dummy_conn"
1633
1633
})
1634
1634
You can’t perform that action at this time.
0 commit comments