Skip to content

Commit 793c090

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8df600e commit 793c090

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

payments/cybersource/test_cybersource.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import types
43
from datetime import date
54
from decimal import Decimal
65
from unittest.mock import MagicMock

payments/paypal/test_paypal.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import json
43
from copy import deepcopy
54
from datetime import date
65
from decimal import Decimal
@@ -106,14 +105,18 @@ class Payment(Mock):
106105

107106
def __init__(self, *args, extra_data=None, **kwargs):
108107
super().__init__(*args, **kwargs)
109-
self.extra_data = extra_data if extra_data is not None else {
110-
"links": {
111-
"approval_url": None,
112-
"capture": {"href": "http://capture.com"},
113-
"refund": {"href": "http://refund.com"},
114-
"execute": {"href": "http://execute.com"},
108+
self.extra_data = (
109+
extra_data
110+
if extra_data is not None
111+
else {
112+
"links": {
113+
"approval_url": None,
114+
"capture": {"href": "http://capture.com"},
115+
"refund": {"href": "http://refund.com"},
116+
"execute": {"href": "http://execute.com"},
117+
}
115118
}
116-
}
119+
)
117120

118121
@property
119122
def pk(self) -> int:

payments/sofort/test_sofort.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import json
43
from unittest.mock import MagicMock
54
from unittest.mock import Mock
65
from unittest.mock import patch

0 commit comments

Comments
 (0)