Skip to content

Add ordered fake GET responses - #340

Open
dajiaohuang wants to merge 1 commit into
3lvis:masterfrom
dajiaohuang:feature/fake-get-response-sequence
Open

dajiaohuang wants to merge 1 commit into
3lvis:masterfrom
dajiaohuang:feature/fake-get-response-sequence

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Oct 21, 2026 •

Copy link
Copy Markdown

Closes #326.

Why

Pagination tests need distinct fake bodies on repeated calls to the same path.

The approach

Add fakeGET(_:responses:). It serves the responses in order and repeats the last response after the sequence ends. The README shows the pagination use.

Testing

  • py -3 scripts/check-doc-links.py — passed.
  • git diff --check — passed.
  • make test could not run because GNU make and Swift are unavailable. Docker CLI is installed, but Docker Desktop's Linux engine is not running.

Learnings

None.

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.

A fake answers the same path the same way forever

1 participant