Skip to content

Commit

Permalink
testing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvictoria committed Jan 4, 2024
1 parent bccfc56 commit a115579
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_servicebus.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class TestServiceBus(unittest.TestCase):
MOCKED_TIME_TO_LIVE = '11:22:33'
MOCKED_TIME_TO_LIVE_TIMEDELTA = timedelta(hours=11, minutes=22, seconds=33)
MOCKED_TO = 'mocked_to'
MOCKED_TRANSITION_PARTITION_KEY = 'mocked_transition_partition_key'
MOCKED_TRANSACTION_PARTITION_KEY = 'mocked_transaction_partition_key'

MOCKED_AZURE_PARTNER_ID = '6ceef68b-0794-45dd-bb2e-630748515552'

Expand Down Expand Up @@ -328,7 +328,7 @@ def test_servicebus_properties(self):
self.assertEqual(msg.to,
self.MOCKED_TO)
self.assertEqual(msg.transaction_partition_key,
self.MOCKED_TRANSITION_PARTITION_KEY)
self.MOCKED_TRANSACTION_PARTITION_KEY)
self.assertDictEqual(msg.user_properties, {
'$AzureWebJobsParentId': self.MOCKED_AZURE_PARTNER_ID,
'x-opt-enqueue-sequence-number': 0
Expand Down Expand Up @@ -493,7 +493,7 @@ def test_multiple_servicebus_trigger_properties(self):
self.assertEqual(msg.to,
self.MOCKED_TO)
self.assertEqual(msg.transaction_partition_key,
self.MOCKED_TRANSITION_PARTITION_KEY)
self.MOCKED_TRANSACTION_PARTITION_KEY)
self.assertDictEqual(msg.user_properties, {
'$AzureWebJobsParentId': self.MOCKED_AZURE_PARTNER_ID,
'x-opt-enqueue-sequence-number': 0
Expand Down Expand Up @@ -608,8 +608,8 @@ def _generate_single_trigger_metadata(self) -> Dict[str, meta.Datum]:
'To': meta.Datum(
self.MOCKED_TO, 'string'
),
'TransitionPartitionKey': meta.Datum(
self.MOCKED_TRANSITION_PARTITION_KEY, 'string'
'TransactionPartitionKey': meta.Datum(
self.MOCKED_TRANSACTION_PARTITION_KEY, 'string'
)
}
mocked_metadata['MessageReceiver'] = meta.Datum(type='json', value='''
Expand Down Expand Up @@ -707,7 +707,7 @@ def _generate_multiple_trigger_metadata(self) -> Dict[str, meta.Datum]:
'Label', 'collection_string'
),
'LockedUntilArray': combine_from(
'LockedUntilArray', 'json'
'LockedUntil', 'json'
),
'LockTokenArray': combine_from(
'LockToken', 'collection_string'
Expand Down

0 comments on commit a115579

Please sign in to comment.