Write automated tests covering shorten, redirect, and count behavior #8

Closed
opened 2026-09-23 10:42:08 +00:00 by anaeem · 1 comment
Owner

Stack, decided by the human (A-q1 in the design note): Python + Flask + SQLite, a single the app module, stdlib first. The spikes this build was blocked on are answered by that line; do not re-ask them.

What. s4: "The service runs and its behavior (shorten, redirect, count) is exercised by at least a basic automated test, so 'finished' is checkable rather than claimed."

Acceptance.
A test file (for example pytest) exists that: creates a short code from a URL and asserts a code is returned; follows the code and asserts an HTTP redirect to the original URL; checks the count endpoint increments after one or more follows; tests pass when run via a documented command (for example pytest).

Files: tests/test_app.py. Nothing else. The reviewer's exact check reads every backticked token in this body as something the diff must contain, which is why the prose above carries none.

**Stack, decided by the human (A-q1 in the design note):** Python + Flask + SQLite, a single the app module, stdlib first. The spikes this build was blocked on are answered by that line; do not re-ask them. **What.** s4: "The service runs and its behavior (shorten, redirect, count) is exercised by at least a basic automated test, so 'finished' is checkable rather than claimed." **Acceptance.** A test file (for example pytest) exists that: creates a short code from a URL and asserts a code is returned; follows the code and asserts an HTTP redirect to the original URL; checks the count endpoint increments after one or more follows; tests pass when run via a documented command (for example pytest). Files: `tests/test_app.py`. Nothing else. The reviewer's exact check reads every backticked token in this body as something the diff must contain, which is why the prose above carries none.
Author
Owner

Merged by the platform manager at 0f58ab6: the test file, landed by the platform's worker in one attempt and judged satisfied; pytest run on master after the merge. Closed.

**Merged by the platform manager** at `0f58ab6`: the test file, landed by the platform's worker in one attempt and judged satisfied; pytest run on master after the merge. Closed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
anaeem/platform-trial#8
No description provided.