diff --git a/abrechnung/application/transactions.py b/abrechnung/application/transactions.py index f6f151bf..24fa5a78 100644 --- a/abrechnung/application/transactions.py +++ b/abrechnung/application/transactions.py @@ -1164,7 +1164,6 @@ async def sync_transaction( async def sync_transactions( self, *, user: User, group_id: int, transactions: list[RawTransaction] ) -> dict[int, int]: - all_transactions_in_same_group = all( [a.group_id == group_id for a in transactions] ) diff --git a/tests/test_transaction_logic.py b/tests/test_transaction_logic.py index 28b81a7a..8d609354 100644 --- a/tests/test_transaction_logic.py +++ b/tests/test_transaction_logic.py @@ -183,7 +183,10 @@ async def test_file_upload(self): self.assertEqual(file_id, transaction.committed_files[0].id) self.assertIsNotNone(transaction.committed_files[0].blob_id) - (mime_type, _,) = await self.transaction_service.read_file_contents( + ( + mime_type, + _, + ) = await self.transaction_service.read_file_contents( user=self.user, file_id=file_id, blob_id=transaction.committed_files[0].blob_id,