Skip to content

Implement overdraft_protection in bank.py#131

Open
hummusonrails wants to merge 1 commit into
ADG-VITV:mainfrom
hummusonrails:fix-overdraft-protection
Open

Implement overdraft_protection in bank.py#131
hummusonrails wants to merge 1 commit into
ADG-VITV:mainfrom
hummusonrails:fix-overdraft-protection

Conversation

@hummusonrails

Copy link
Copy Markdown

Summary

  • Implemented Account.overdraft_protection() to validate withdrawal amounts against the current balance.
  • Added unit tests for allowed withdrawals, over-balance withdrawals, and negative amounts.

Tests

  • python3 -m unittest

Fixes #36

@hummusonrails hummusonrails marked this pull request as ready for review May 6, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement overdraft_protection() in bank.py

1 participant