@@ -437,8 +437,8 @@ def test_create_return_for_order_exception(self):
437
437
"errors" : [
438
438
{
439
439
"code" : "ConcurrentModification" ,
440
- "detailedErrorMessage " : "Object [mock_order_id] has a "
441
- "different version than expected. Expected: 2 - Actual: 1."
440
+ "message " : "Object [mock_order_id] has a "
441
+ "different version than expected. Expected: 2 - Actual: 1." ,
442
442
},
443
443
],
444
444
"response" : {},
@@ -464,8 +464,8 @@ def test_create_return_for_order_exception(self):
464
464
465
465
expected_message = (
466
466
f"[CommercetoolsError] Unable to create return for "
467
- f"order mock_order_id with error correlation id { exception . correlation_id } "
468
- f"and error/s : { exception .errors } "
467
+ f"order mock_order_id "
468
+ f"- Correlation ID: { exception . correlation_id } , Details : { exception .errors } "
469
469
)
470
470
471
471
log_mock .assert_called_once_with (expected_message )
@@ -509,8 +509,8 @@ def test_update_return_payment_state_exception(self):
509
509
"errors" : [
510
510
{
511
511
"code" : "ConcurrentModification" ,
512
- "detailedErrorMessage " : "Object [mock_order_id] has a "
513
- "different version than expected. Expected: 3 - Actual: 2."
512
+ "message " : "Object [mock_order_id] has a "
513
+ "different version than expected. Expected: 3 - Actual: 2."
514
514
},
515
515
],
516
516
"response" : {},
@@ -580,8 +580,8 @@ def test_create_refund_transaction_exception(self):
580
580
"errors" : [
581
581
{
582
582
"code" : "ConcurrentModification" ,
583
- "detailedErrorMessage " : "Object [mock_order_id] has a "
584
- "different version than expected. Expected: 2 - Actual: 1."
583
+ "message " : "Object [mock_order_id] has a "
584
+ "different version than expected. Expected: 2 - Actual: 1." ,
585
585
},
586
586
],
587
587
"response" : {},
@@ -607,8 +607,8 @@ def test_create_refund_transaction_exception(self):
607
607
608
608
expected_message = (
609
609
f"[CommercetoolsError] Unable to create refund payment transaction for "
610
- f"payment mock_payment_id and stripe refund { mock_stripe_refund .id } with "
611
- f"error correlation id { exception .correlation_id } and error/s : { exception .errors } "
610
+ f"payment mock_payment_id and stripe refund { mock_stripe_refund .id } "
611
+ f"- Correlation ID: { exception .correlation_id } , Details : { exception .errors } "
612
612
)
613
613
614
614
log_mock .assert_called_once_with (expected_message )
@@ -659,8 +659,8 @@ def test_update_line_item_state_exception(self, mock_state_by_id):
659
659
"errors" : [
660
660
{
661
661
"code" : "ConcurrentModification" ,
662
- "detailedErrorMessage " : "Object [mock_order_id] has a "
663
- "different version than expected. Expected: 2 - Actual: 1."
662
+ "message " : "Object [mock_order_id] has a "
663
+ "different version than expected. Expected: 2 - Actual: 1."
664
664
},
665
665
],
666
666
"response" : {},
@@ -686,8 +686,9 @@ def test_update_line_item_state_exception(self, mock_state_by_id):
686
686
687
687
expected_message = (
688
688
f"[CommercetoolsError] Unable to update LineItemState "
689
- f"of order mock_order_id with error correlation id { mock_error_response ['correlation_id' ]} "
690
- f"and error/s: { mock_error_response ['errors' ]} "
689
+ f"of order mock_order_id "
690
+ f"- Correlation ID: { mock_error_response ['correlation_id' ]} , "
691
+ f"Details: { mock_error_response ['errors' ]} "
691
692
)
692
693
693
694
log_mock .assert_called_once_with (expected_message )
0 commit comments