Skip to content

Commit

Permalink
chore: Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Aug 25, 2022
1 parent 7d730e5 commit 7135320
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion netsgiro/objects.py
Expand Up @@ -447,7 +447,6 @@ def _add_avtalegiro_transaction(
payer_name: Optional[str] = None,
bank_notification: Union[str, bool] = False,
) -> 'PaymentRequest':

text = bank_notification if isinstance(bank_notification, str) else ''
number = self._next_transaction_number
self._next_transaction_number += 1
Expand Down
2 changes: 1 addition & 1 deletion netsgiro/records.py
Expand Up @@ -366,7 +366,7 @@ def to_ocr(self) -> str:


@define
class TransactionRecord(Record, ABC):
class TransactionRecord(Record):
"""Transaction record base class."""

transaction_type: 'TransactionType' = field(converter=to_transaction_type)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_object_building.py
Expand Up @@ -152,7 +152,7 @@ def test_transmission_add_payment_cancellation_assertions():

# Test wrong service code
bad_service_code_assignment = transmission.add_assignment(
**(good_data | {'service_code': netsgiro.ServiceCode.OCR_GIRO})
**{**good_data, **{'service_code': netsgiro.ServiceCode.OCR_GIRO}}
)
with pytest.raises(AssertionError, match='Can only add cancellation to AvtaleGiro assignments'):
bad_service_code_assignment.add_payment_cancellation(**assignment_data)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_record_parsing.py
Expand Up @@ -429,6 +429,6 @@ class SomeRecordDerivative(Record):

with pytest.raises(
TypeError,
match="Can't instantiate abstract class SomeRecordDerivative with abstract method to_ocr",
match="Can't instantiate abstract class SomeRecordDerivative with abstract method",
):
SomeRecordDerivative()

0 comments on commit 7135320

Please sign in to comment.