Add end-to-end tests for Django tutorial integration - #2324
Conversation
- Created complete polls app following official Django tutorial - Added tests for Parts 1-4 (models, admin, views, forms, voting) - Verified debug toolbar appears on all tutorial pages - Tests cover edge cases and error handling - Ensures beginners following tutorial won't encounter toolbar issues Fixes django-commons#2213
There was a problem hiding this comment.
there is already an example project in the package you should use that
There was a problem hiding this comment.
this should not have been commited
There was a problem hiding this comment.
Thanks for the review @JohananOppongAmoateng! I'll update the PR to:
-
Remove the SQLite database file
-
Remove the migration files
-
Recreate the tests using the existing example project
- Remove database file - Remove migration files - Update gitignore
b034aa6 to
c452fb1
Compare
for more information, see https://pre-commit.ci
|
@JohananOppongAmoateng I've removed the database and migration files as requested. Thanks so much! |
|
Hi @okiemute04 I'm closing this PR as it seems to stray too far in the direction of using LLM output for every aspect of contributing. This is based on all the PRs (#2321, #2323, #2324) you've created. If you're willing to come back to interact with more of your self, we would be open to collaborating with you. I've written more about this challenge here. |
|
@tim-schilling Thank you so much for the honest feedback.... I understand the concern. I've been using AI tools to help structure my contributions, but I see now that it's made my work feel inauthentic. I genuinely want to contribute to this project and learn from the community and the process. I'd like to rework these PRs with my own voice and understanding. Would it be acceptable to reopen them? I'm committed to doing the work myself and learning from the process. I am sorry, I take accountability, and I am willing to do the work and contribute authentically. |
Description
Fixes #2213 - Add end-to-end tests that verify the Django Debug Toolbar works with the official Django tutorial.
Problem
The Django Debug Toolbar is an essential tool for beginners learning Django through the official tutorial. However, there's currently no automated testing to ensure that the toolbar doesn't break any tutorial functionality or that the tutorial steps work correctly with the toolbar enabled.
Solution
Created a complete Django tutorial project (polls app) and comprehensive end-to-end tests that verify the toolbar works at each stage of the tutorial.
Implementation Details:
Complete Tutorial Project (
tests/tutorial_project/)Comprehensive Tests covering tutorial Parts 1-4:
Testing
All 5 tests pass successfully:
Key Test Coverage
Benefits
Implementation Notes
Future Work
Checklist