Skip to content

Commit

Permalink
cherry pick changes (#249)
Browse files Browse the repository at this point in the history
Co-authored-by: Victoria Hall <[email protected]>
  • Loading branch information
hallvictoria and Victoria Hall authored Sep 30, 2024
1 parent 87cd092 commit 3f8e43c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion azure/functions/decorators/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self,
**kwargs):
self.path = path
self.connection = connection
self.source = source
self.source = source.value if source else None
super().__init__(name=name, data_type=data_type)

@staticmethod
Expand Down
6 changes: 3 additions & 3 deletions tests/decorators/test_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_blob_trigger_creation_with_default_specified_source(self):
"name": "req",
"dataType": DataType.UNDEFINED,
"path": "dummy_path",
'source': BlobSource.LOGS_AND_CONTAINER_SCAN,
'source': 'LogsAndContainerScan',
"connection": "dummy_connection"
})

Expand All @@ -62,7 +62,7 @@ def test_blob_trigger_creation_with_source_as_string(self):
"name": "req",
"dataType": DataType.UNDEFINED,
"path": "dummy_path",
'source': BlobSource.EVENT_GRID,
'source': 'EventGrid',
"connection": "dummy_connection"
})

Expand All @@ -82,7 +82,7 @@ def test_blob_trigger_creation_with_source_as_enum(self):
"name": "req",
"dataType": DataType.UNDEFINED,
"path": "dummy_path",
'source': BlobSource.EVENT_GRID,
'source': 'EventGrid',
"connection": "dummy_connection"
})

Expand Down
2 changes: 1 addition & 1 deletion tests/decorators/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ def test_blob_input_binding():
"type": BLOB_TRIGGER,
"name": "req",
"path": "dummy_path",
"source": BlobSource.EVENT_GRID,
"source": 'EventGrid',
"connection": "dummy_conn"
})

Expand Down

0 comments on commit 3f8e43c

Please sign in to comment.