Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 3b9d51a

Browse files
committed
Fix code style issues with Black
1 parent 7603dd7 commit 3b9d51a

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

projects/Budget-manager/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def delete_transaction():
6060

6161
# Function to clear input fields.
6262

63+
6364
def clear_entries():
6465
"""
6566
Clears all input fields.

projects/Budget-manager/test_DeleteButton.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@ def add_transaction(self, transaction):
1111
def delete_transaction(self, transaction):
1212
self.transactions.remove(transaction)
1313

14+
1415
class TestBudgetFunctionality(unittest.TestCase):
1516
def test_delete_transaction(self):
1617
# Arrange
1718
budget = Budget()
18-
transaction_to_delete = {"date": "2023-01-01", "description": "Test Transaction", "amount": 100.0, "category": "Test"}
19+
transaction_to_delete = {
20+
"date": "2023-01-01",
21+
"description": "Test Transaction",
22+
"amount": 100.0,
23+
"category": "Test",
24+
}
1925
# Act
2026
budget.add_transaction(transaction_to_delete)
2127
budget.delete_transaction(transaction_to_delete)
2228

2329
# Assert ()
2430
self.assertNotIn(transaction_to_delete, budget.transactions)
2531

26-
if __name__ == '__main__':
27-
unittest.main()
28-
2932

33+
if __name__ == "__main__":
34+
unittest.main()

0 commit comments

Comments
 (0)