Skip to content

Commit a115579

Browse files
committed
testing fixes
1 parent bccfc56 commit a115579

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_servicebus.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class TestServiceBus(unittest.TestCase):
4242
MOCKED_TIME_TO_LIVE = '11:22:33'
4343
MOCKED_TIME_TO_LIVE_TIMEDELTA = timedelta(hours=11, minutes=22, seconds=33)
4444
MOCKED_TO = 'mocked_to'
45-
MOCKED_TRANSITION_PARTITION_KEY = 'mocked_transition_partition_key'
45+
MOCKED_TRANSACTION_PARTITION_KEY = 'mocked_transaction_partition_key'
4646

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

@@ -328,7 +328,7 @@ def test_servicebus_properties(self):
328328
self.assertEqual(msg.to,
329329
self.MOCKED_TO)
330330
self.assertEqual(msg.transaction_partition_key,
331-
self.MOCKED_TRANSITION_PARTITION_KEY)
331+
self.MOCKED_TRANSACTION_PARTITION_KEY)
332332
self.assertDictEqual(msg.user_properties, {
333333
'$AzureWebJobsParentId': self.MOCKED_AZURE_PARTNER_ID,
334334
'x-opt-enqueue-sequence-number': 0
@@ -493,7 +493,7 @@ def test_multiple_servicebus_trigger_properties(self):
493493
self.assertEqual(msg.to,
494494
self.MOCKED_TO)
495495
self.assertEqual(msg.transaction_partition_key,
496-
self.MOCKED_TRANSITION_PARTITION_KEY)
496+
self.MOCKED_TRANSACTION_PARTITION_KEY)
497497
self.assertDictEqual(msg.user_properties, {
498498
'$AzureWebJobsParentId': self.MOCKED_AZURE_PARTNER_ID,
499499
'x-opt-enqueue-sequence-number': 0
@@ -608,8 +608,8 @@ def _generate_single_trigger_metadata(self) -> Dict[str, meta.Datum]:
608608
'To': meta.Datum(
609609
self.MOCKED_TO, 'string'
610610
),
611-
'TransitionPartitionKey': meta.Datum(
612-
self.MOCKED_TRANSITION_PARTITION_KEY, 'string'
611+
'TransactionPartitionKey': meta.Datum(
612+
self.MOCKED_TRANSACTION_PARTITION_KEY, 'string'
613613
)
614614
}
615615
mocked_metadata['MessageReceiver'] = meta.Datum(type='json', value='''
@@ -707,7 +707,7 @@ def _generate_multiple_trigger_metadata(self) -> Dict[str, meta.Datum]:
707707
'Label', 'collection_string'
708708
),
709709
'LockedUntilArray': combine_from(
710-
'LockedUntilArray', 'json'
710+
'LockedUntil', 'json'
711711
),
712712
'LockTokenArray': combine_from(
713713
'LockToken', 'collection_string'

0 commit comments

Comments
 (0)