Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shafqatfarhan committed Dec 18, 2024
1 parent 60c376b commit 0b7f90e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions commerce_coordinator/apps/commercetools/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def run_filter(

ct_api_client = CommercetoolsAPIClient()
try:
payment_on_order = None
if payment_data is not None:
payment_on_order = payment_data
elif psp == EDX_STRIPE_PAYMENT_INTERFACE_NAME:
Expand Down
1 change: 0 additions & 1 deletion commerce_coordinator/apps/commercetools/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from commercetools.platform.models import Transaction as CTTransaction
from commercetools.platform.models import TransactionState, TransactionType
from commercetools.platform.models import TypeReference as CTTypeReference
from commercetools.platform.models import TypedMoney as CTTypedMoney
from commercetools.platform.models.state import State as CTLineItemState
from commercetools.platform.models.state import StateTypeEnum as CTStateType
from commercetools.testing import BackendRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,12 @@ def get_uut():
@patch('commerce_coordinator.apps.commercetools.sub_messages.tasks.is_edx_lms_order')
@patch('commerce_coordinator.apps.stripe.pipeline.StripeAPIClient')
@patch.object(CommercetoolsAPIClientMock, 'payment_mock', new_callable=MagicMock)
def test_correct_arguments_passed_already_refunded_doest_break(self, _stripe_api_mock, _lms_signal, custom_payment_mock):
def test_correct_arguments_passed_already_refunded_doest_break(
self,
_stripe_api_mock,
_lms_signal,
custom_payment_mock
):
"""
Check calling uut with mock_parameters yields call to client with
expected_data.
Expand Down

0 comments on commit 0b7f90e

Please sign in to comment.