Skip to content

Conversation

@brandur
Copy link
Collaborator

@brandur brandur commented Mar 10, 2025

Modify the test suite to invoke endpoints with apitest.InvokeHandler
proposed in [1]. This isn't too different than invoking them raw, but
provides a couple extra niceties like validating input request structs
and returning realistic looking API errors in case of a problem.

[1] riverqueue/apiframe#3

@brandur brandur force-pushed the brandur-use-api-test branch 4 times, most recently from 10e98b9 to 8975cf9 Compare March 10, 2025 07:01
@brandur brandur requested a review from bgentry March 10, 2025 07:04
Modify the test suite to invoke endpoints with `apitest.InvokeHandler`
proposed in [1]. This isn't too different than invoking them raw, but
provides a couple extra niceties like validating input request structs
and returning realistic looking API errors in case of a problem.

[1] riverqueue/apiframe#3
@brandur brandur force-pushed the brandur-use-api-test branch from 8975cf9 to 88b3378 Compare March 10, 2025 15:28
@brandur
Copy link
Collaborator Author

brandur commented Mar 10, 2025

Updated with @latest.

@brandur brandur merged commit c2c8b37 into master Mar 10, 2025
13 checks passed
@brandur brandur deleted the brandur-use-api-test branch March 10, 2025 15:46
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.

3 participants