Files
thrillwiki_django_no_react/shared/docs/memory-bank/decisions/test-fixes-2024-02-22.md
pacnpal d504d41de2 feat: complete monorepo structure with frontend and shared resources
- Add complete backend/ directory with full Django application
- Add frontend/ directory with Vite + TypeScript setup ready for Next.js
- Add comprehensive shared/ directory with:
  - Complete documentation and memory-bank archives
  - Media files and avatars (letters, park/ride images)
  - Deployment scripts and automation tools
  - Shared types and utilities
- Add architecture/ directory with migration guides
- Configure pnpm workspace for monorepo development
- Update .gitignore to exclude .django_tailwind_cli/ build artifacts
- Preserve all historical documentation in shared/docs/memory-bank/
- Set up proper structure for full-stack development with shared resources
2025-08-23 18:40:07 -04:00

1.1 KiB

Test Fixes Required - 2024-02-22

Issues Identified

1. ParkArea Unique Constraint Test (IntegrityError)

  • Problem: Test expects ValidationError but gets IntegrityError
  • Root Cause: Database constraint violation instead of model validation
  • Fix: Update test to expect IntegrityError or add model validation

2. Numeric Filtering Test (min_rides filter)

  • Problem: Filter not working correctly for min_rides=18
  • Root Cause: Likely issue with ride count calculation or filter logic
  • Fix: Check ParkFilter implementation and ride count logic

3. Historical Slug Lookup Test (is_historical flag)

  • Problem: is_historical returning False instead of True for old slug
  • Root Cause: get_by_slug method not correctly identifying historical slugs
  • Fix: Review ParkArea.get_by_slug implementation

Priority Order

  1. Fix unique constraint test (quick fix)
  2. Fix historical slug lookup (core functionality)
  3. Fix numeric filtering (search feature)

Next Steps

  • Fix tests one by one
  • Run test suite after each fix
  • Document any model changes needed