Skip to content

Refactor: Reorganize project structure#2

Merged
odanree merged 6 commits into
mainfrom
refactor/reorganize-project-structure
Nov 12, 2025
Merged

Refactor: Reorganize project structure#2
odanree merged 6 commits into
mainfrom
refactor/reorganize-project-structure

Conversation

@odanree

@odanree odanree commented Nov 12, 2025

Copy link
Copy Markdown
Owner

Changes

New Structure

\\plaintext
credit-history-app/
src/ # Source code
integrations/ # API clients
templates/ # Flask templates
app.py
main.py
scripts/ # Utility scripts
tests/ # Test files
docs/ # Documentation
.github/ # GitHub configs
Root configs (requirements.txt, render.yaml, etc)
\\

What Changed

  • Moved all source code to \src/`n- Moved documentation to \docs/`n- Moved scripts to \scripts/`n- ✅ Moved tests to \ ests/`n- Updated all imports to use new paths
  • Updated deployment configs (render.yaml, Procfile)
  • Created _init_.py\ files for proper Python packages
  • Added root README with quick start

Testing

  • Updated import paths in all files
  • Updated Render/Gunicorn configs
  • Deployment configs reference correct paths

Benefits

  • Clean, professional project structure
  • Clear separation of concerns
  • All docs in one place
  • � Scripts organized separately
  • Follows Python best practices

Ready to merge!

- Fixed test_client_initialization to not check non-existent environment attribute
- Fixed test_dashboard_route_success to mock analyze_transactions
- Added 5 new Plaid integration tests for accounts, transactions, and edge cases
- Excluded src/main.py from coverage (CLI script not used in Flask app)
- All 33 tests passing
- Flask app coverage: 87.01%
- Overall coverage: 53.33% (excluding main.py)
- Removed old debug script that was causing pytest collection to fail
- Script had exit(1) at module level which triggered SystemExit during import
- All 33 tests now pass successfully in CI
- Removed test_experian_auth.py (debug script with env var access at module level)
- Removed test_experian_gateway.py (debug script with API calls at import)
- Only proper unit tests remain: test_app.py, test_experian_integration.py, test_plaid_integration.py
- All 33 tests passing locally
@odanree odanree merged commit ecf412f into main Nov 12, 2025
2 checks passed
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.

1 participant