Make TODO API tests pass#347
Merged
bfabio merged 7 commits intoMay 10, 2026
Merged
Conversation
3 tasks
bfabio
reviewed
Apr 26, 2026
Member
|
Looks very good overall @Trihedron1240, thanks! |
6353cee to
319646f
Compare
bfabio
reviewed
Apr 26, 2026
01ae38b to
4d42747
Compare
bfabio
requested changes
Apr 27, 2026
| expectedContentType: "application/json", | ||
| validateFunc: func(t *testing.T, response map[string]interface{}) { | ||
| items := assertListResponse(t, response) | ||
| assert.LessOrEqual(t, len(items), 100) |
| expectedContentType: "application/json", | ||
| validateFunc: func(t *testing.T, response map[string]interface{}) { | ||
| items := assertListResponse(t, response) | ||
| assert.LessOrEqual(t, len(items), 100) |
| placeholder(4), | ||
| ) | ||
|
|
||
| for i := range 100 { |
Member
There was a problem hiding this comment.
We should add more than 100, so to make sure the cap works at 100 and it's not just returning all of them.
This does not clear the logs after the test is done right? If so, it should clean it after each test.
Co-authored-by: Fabio Bonelli <fbonelli@gmail.com>
Co-authored-by: Fabio Bonelli <fbonelli@gmail.com>
4d42747 to
bc99838
Compare
Member
|
Since this also fixes a bug I took the liberty of fixing the small pending improvements. Thanks for your work @Trihedron1240! |
bc99838 to
8ea504e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
Closes #111