Sankofa Journal Step 15: Tests That Matter

Write tests for the four security properties: a draft is not publicly visible, a stranger cannot edit another person's post, a signed-out visitor is redirected rather than shown the form, and the index shows published posts only. Then break each rule on purpose, one at a time, and confirm the matching test fails. A test you have never seen fail is a test you have no reason to trust. Put them back, and add a test for the last bug you fixed.

SANKOFA SANDBOX
loading editor…
Your turn → Work through it step by step. This is a piece of the course project, not a throwaway exercise.

Built it in both languages?

Mark it done once your Python and JavaScript versions both run correctly. Honesty here is what makes the dashboard useful to you.

← BackNext: Module 16: Deployment and the Sankofa Journal →