Test: add integration tests for template creation and form fill routes#426
Open
Arijit429 wants to merge 10 commits intofireform-core:mainfrom
Open
Test: add integration tests for template creation and form fill routes#426Arijit429 wants to merge 10 commits intofireform-core:mainfrom
Arijit429 wants to merge 10 commits intofireform-core:mainfrom
Conversation
Author
|
Hi maintainers, added integration tests for the core API flow and verified both routes locally—happy to extend coverage for additional edge cases if needed. |
Author
|
Hi maintainers, continuing the milestones outlined in my post-proposal contribution plan, I’ve been steadily progressing across extraction reliability, validation workflow, database initialization, and now route-level integration testing to move the project closer to production-ready stability. |
899237a to
cc0b684
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #24
Closes #265
🚀 Summary
This PR adds route-level integration tests for the core API workflow to improve backend reliability and strengthen regression safety.
The tests cover the two most critical endpoints in the current pipeline:
/templates/create/forms/fill✨ What Changed
Added a new integration test file:
This validates the end-to-end API behavior using FastAPI’s
TestClient.🧪 Test Coverage Added
1) Template creation route
Verifies successful template creation with valid payload structure and ensures response correctness.
Validated:
2002) Form fill route
Tests the complete workflow:
This provides strong route-level regression protection for the core extraction pipeline.
💡 Why This Helps
These tests strengthen:
This is especially important for the form generation pipeline since it directly impacts end-user functionality.
🧪 Local Validation
Executed locally using:
Result:
🎯 Impact
This improves confidence in the application’s most critical routes and makes future refactors significantly safer.