Initialize project environment, dependencies, and Flask 'red' test.
authorSam Mirazi <sasan345@gmail.com>
Sat, 31 May 2025 02:31:51 +0000 (19:31 -0700)
committerSam Mirazi <sasan345@gmail.com>
Sat, 31 May 2025 02:31:51 +0000 (19:31 -0700)
commite8645a728d1fe8325c06643429f6e978122f7b04
tree00fbce688255c88b7c1075f14283bbfc3ef01203
parentbac001f25055342fc6537766f3f37ab1d61e9eb1
Initialize project environment, dependencies, and Flask 'red' test.

This commit covers the successful completion of Phase 0 (Environment & Repo Skeleton) and Phase 1 (Red Test for Flask Home Route) as outlined in the Technical Design Document.

Key achievements include:

Phase 0:
- Successfully created and activated a Python virtual environment (.venv).
- Installed core project dependencies: Flask, FastAPI, Uvicorn, Pytest, HTTPX, and Requests.
- Corrected and finalized 'requirements.txt' to reflect these core dependencies with their specific versions.
- Scaffolded the initial project directory structure:
    - project/
        - app_flask/
        - app_fastapi/
        - tests/
        - benchmark/

Phase 1:
- Created the initial failing test file 'project/tests/test_flask_route.py'. This test is designed to fail (red state) as the Flask application endpoint is not yet implemented.
- Confirmed the expected 'red' test failure (httpx.ConnectError and ModuleNotFoundError for the non-existent app) by running the command:
  .\.venv\Scripts\python.exe -m pytest -p no:all
- Updated 'Design Docs/TDD.md' to include a detailed report of the Phase 1 verification, including the exact command used and the observed terminal output.

This establishes the baseline for Test-Driven Development, with a failing test now ready for the Flask application implementation in Phase 2.
Design Docs/TDD.md