Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YunchuWang committed Oct 7, 2024
1 parent a5f8d84 commit 58de3db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_blob_input_with_metadata_no_blob_properties(self):
self.assertEqual(result.metadata, None)

def test_blob_input_with_metadata_no_trigger_metadata(self):
sample_blob_properties = '{"Length": "12"}'
sample_blob_properties = '{"ContentLength": "12"}'
datum: Datum = Datum(value=b'blob_content', type='bytes')
trigger_metadata: Dict[str, Any] = {
'Properties': Datum(sample_blob_properties, 'json'),
Expand Down Expand Up @@ -115,7 +115,7 @@ def test_blob_input_with_metadata_with_trigger_metadata(self):
"LeaseStatus": 2,
"LeaseState": 1,
"LeaseDuration": 0,
"Length": "12"
"ContentLength": "12"
}'''
datum: Datum = Datum(value=b'blob_content', type='bytes')
trigger_metadata: Dict[str, Any] = {
Expand All @@ -139,7 +139,7 @@ def test_blob_input_with_metadata_with_trigger_metadata(self):

def test_blob_input_with_metadata_with_incorrect_trigger_metadata(self):
sample_metadata = 'Hello World'
sample_blob_properties = '''{"Length": "12"}'''
sample_blob_properties = '''{"ContentLength": "12"}'''
datum: Datum = Datum(value=b'blob_content', type='bytes')
trigger_metadata: Dict[str, Any] = {
'Metadata': Datum(sample_metadata, 'string'),
Expand Down

0 comments on commit 58de3db

Please sign in to comment.