You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an update to the previous [FEATURE] Currency Script | Add unit tests for core modules issue. Expanding the scope to not only add unit tests, but also:
Implement a simple CLI via main.py
Add/ensure minimal docstrings across modules
Update README.md and requirements.txt
Details
Ensure unittest coverage for:
api_handler.py
converter.py
currencies.py
Create a simple CLI script in main.py:
Prompt user for currency input and amount
Show converted amount
Option to perform another conversion or exit
Ensure all modules (api_handler, currencies, converter) have simple, readable docstrings
Update README.md with usage, setup, and test instructions
Update requirements.txt with dependencies (requests, etc.)
Rationale
There are currently no automated tests. This task improves long-term maintainability, reduces risk of regressions, and introduces a user-friendly way to run the tool.