Skip to content

Add render tests for Blog, Breads, Locations, and Recipes#706

Open
Anayo-Anyafulu wants to merge 1 commit intowagtail:mainfrom
Anayo-Anyafulu:feature/page-render-tests-623
Open

Add render tests for Blog, Breads, Locations, and Recipes#706
Anayo-Anyafulu wants to merge 1 commit intowagtail:mainfrom
Anayo-Anyafulu:feature/page-render-tests-623

Conversation

@Anayo-Anyafulu
Copy link
Copy Markdown
Contributor

@Anayo-Anyafulu Anayo-Anyafulu commented Mar 31, 2026

Refs #623. Closes Blog, Breads, Locations, and Recipes portions of #623.

Changes

Tests: Added WagtailPageTestCase render tests for four apps:

  • bakerydemo/blog/tests/test_blog_page.py — covers BlogIndexPage and BlogPage
  • bakerydemo/breads/tests/test_bread_page.py — covers BreadsIndexPage and BreadPage
  • bakerydemo/locations/tests/test_location_page.py — covers LocationsIndexPage and LocationPage
  • bakerydemo/recipes/tests/test_recipe_page.py — covers RecipeIndexPage and RecipePage

Each test verifies:

  • HTTP 200 response
  • Correct template is used
  • Key content from the page is present in the response

Follows the WagtailPageTestCase pattern from bakerydemo/base/tests/.

AI usage

I used Claude (claude.ai) to help scaffold the test files based on the existing HomePageRenderTest pattern. The structure, required fields, and template names were verified by reading the source code directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant