end of project
This commit is contained in:
BIN
Woverine.pdf
Normal file
BIN
Woverine.pdf
Normal file
Binary file not shown.
@@ -1,3 +1,4 @@
|
|||||||
|
cat > /tmp/your_data.json <<'EOF'
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"model": "auth.user",
|
"model": "auth.user",
|
||||||
@@ -9902,3 +9903,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
EOF
|
||||||
|
python3 manage.py loaddata /tmp/your_data.json
|
||||||
17
sources/Test prompt.md
Normal file
17
sources/Test prompt.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
prompt
|
||||||
|
|
||||||
|
Test prompt
|
||||||
|
Write test `test_task_list_combined_filters_sort_pagination`:
|
||||||
|
- Setup: 100 tasks across 3 projects, various statuses, assignees, dates
|
||||||
|
- GET `/tasks/?status={in_progress_id}&project={proj1_id}&sort=-priority&page_size=10&page=2`
|
||||||
|
- Assert: only In Progress tasks from proj1, sorted by priority DESC, page 2 (items 11-20)
|
||||||
|
- Verify all filter/sort/pagination params work together correctly
|
||||||
|
Run test - should FAIL
|
||||||
|
|
||||||
|
|
||||||
|
Implementation prompt
|
||||||
|
Ensure all filters/sort/pagination work together:
|
||||||
|
- In view: apply filters then sort then paginate in that order
|
||||||
|
- Template: all filter/sort/page_size inputs in same `<form method="GET">`, pagination links preserve all query params via templatetags
|
||||||
|
- Clear Filters link = `/tasks/` (drops all params)
|
||||||
|
Run test - should PASS
|
||||||
Reference in New Issue
Block a user