@@ -42,7 +42,7 @@ class TestServiceBus(unittest.TestCase):
42
42
MOCKED_TIME_TO_LIVE = '11:22:33'
43
43
MOCKED_TIME_TO_LIVE_TIMEDELTA = timedelta (hours = 11 , minutes = 22 , seconds = 33 )
44
44
MOCKED_TO = 'mocked_to'
45
- MOCKED_TRANSITION_PARTITION_KEY = 'mocked_transition_partition_key '
45
+ MOCKED_TRANSACTION_PARTITION_KEY = 'mocked_transaction_partition_key '
46
46
47
47
MOCKED_AZURE_PARTNER_ID = '6ceef68b-0794-45dd-bb2e-630748515552'
48
48
@@ -328,7 +328,7 @@ def test_servicebus_properties(self):
328
328
self .assertEqual (msg .to ,
329
329
self .MOCKED_TO )
330
330
self .assertEqual (msg .transaction_partition_key ,
331
- self .MOCKED_TRANSITION_PARTITION_KEY )
331
+ self .MOCKED_TRANSACTION_PARTITION_KEY )
332
332
self .assertDictEqual (msg .user_properties , {
333
333
'$AzureWebJobsParentId' : self .MOCKED_AZURE_PARTNER_ID ,
334
334
'x-opt-enqueue-sequence-number' : 0
@@ -493,7 +493,7 @@ def test_multiple_servicebus_trigger_properties(self):
493
493
self .assertEqual (msg .to ,
494
494
self .MOCKED_TO )
495
495
self .assertEqual (msg .transaction_partition_key ,
496
- self .MOCKED_TRANSITION_PARTITION_KEY )
496
+ self .MOCKED_TRANSACTION_PARTITION_KEY )
497
497
self .assertDictEqual (msg .user_properties , {
498
498
'$AzureWebJobsParentId' : self .MOCKED_AZURE_PARTNER_ID ,
499
499
'x-opt-enqueue-sequence-number' : 0
@@ -608,8 +608,8 @@ def _generate_single_trigger_metadata(self) -> Dict[str, meta.Datum]:
608
608
'To' : meta .Datum (
609
609
self .MOCKED_TO , 'string'
610
610
),
611
- 'TransitionPartitionKey ' : meta .Datum (
612
- self .MOCKED_TRANSITION_PARTITION_KEY , 'string'
611
+ 'TransactionPartitionKey ' : meta .Datum (
612
+ self .MOCKED_TRANSACTION_PARTITION_KEY , 'string'
613
613
)
614
614
}
615
615
mocked_metadata ['MessageReceiver' ] = meta .Datum (type = 'json' , value = '''
@@ -707,7 +707,7 @@ def _generate_multiple_trigger_metadata(self) -> Dict[str, meta.Datum]:
707
707
'Label' , 'collection_string'
708
708
),
709
709
'LockedUntilArray' : combine_from (
710
- 'LockedUntilArray ' , 'json'
710
+ 'LockedUntil ' , 'json'
711
711
),
712
712
'LockTokenArray' : combine_from (
713
713
'LockToken' , 'collection_string'
0 commit comments