Uh oh!
There was an error while loading. Please reload this page.
[feature]: Add Flask + SQLite Sample App with Keploy Integration #2798 - #62
[feature]: Add Flask + SQLite Sample App with Keploy Integration #2798#62eatulrajput wants to merge 4 commits into
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Pull Request Overview
Adds a sample Flask + SQLite application with full CRUD operations for student data and integrates Keploy to auto-generate and replay API tests.
- Introduces Flask app (
app.py) and SQLAlchemy model (models.py) with helper validation. - Adds Keploy configuration and auto-generated HTTP test cases for GET and POST endpoints.
- Provides setup docs, dependencies, ignore rules, and coverage settings.
Reviewed Changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| requirements.txt | Lists framework dependencies |
| models.py | Defines Student model and initializes db |
| app.py | Implements CRUD routes with input validation |
| flask-sqlite/keploy/test-set-0/*.yaml | Auto-generated Keploy HTTP test specifications |
| flask-sqlite/keploy.yml | Keploy configuration for recording and testing |
| flask-sqlite/.gitignore | Ignores build artifacts, DB files, and logs |
| flask-sqlite/.coveragerc | Coverage tool configuration |
| README.md | Setup instructions and API documentation |
Comments suppressed due to low confidence (2)
flask-sqlite/requirements.txt:2
- The PyPI package name uses a hyphen, not an underscore. Change to
Flask-SQLAlchemy==3.1.1to ensure it installs correctly.
Flask_SQLAlchemy==3.1.1
flask-sqlite/app.py:54
- There are no Keploy tests covering the
PUT /students/<id>andDELETE /students/<id>endpoints. Consider adding recordings for update and delete operations to ensure full coverage.
@app.route('/students/<int:id>', methods=['PUT'])
| self: s1 | ||
| inCi: false | ||
| # Visit [https://keploy.io/docs/running-keploy/configuration-file/] to learn about using keploy through configration file. |
There was a problem hiding this comment.
There's a typo in the comment: configration should be configuration.
| # Visit [https://keploy.io/docs/running-keploy/configuration-file/] to learn about using keploy through configration file. | |
| # Visit [https://keploy.io/docs/running-keploy/configuration-file/] to learn about using keploy through configuration file. |
Signed-off-by: Atul Rajput <eatulrajput@gmail.com>
Signed-off-by: Atul Rajput <eatulrajput@gmail.com>
Signed-off-by: Atul Rajput <eatulrajput@gmail.com>
pratik-mahalle
commented
Jun 27, 2025
Hey @eatulrajput, Thank you for raising the pr. Our team will review the pr soon |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pratik-mahalle
left a comment
There was a problem hiding this comment.
Hi @eatulrajput, This is a great use case! Can you please share the screenshot or recording if you have so that we will get the better view of it?
[feature]: Add Flask + SQLite Sample App with Keploy Integration - #2798
Issue : keploy/keploy#2798
This PR adds a new sample application that demonstrates how to use Flask with SQLite and integrate it with Keploy for API testing.
Features:
CRUD APIs for managing student data
Uses SQLite (no external DB setup needed)
Built with Flask and Flask-SQLAlchemy