We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 086e30a commit 060baf1Copy full SHA for 060baf1
CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
- Move README sections into /docs with farmOS.org config.yml.
14
- Add github workflow to build netlify docs.
15
- Run tests on pull requests to 1.x.
16
+- Test `resource.iterate` method with a page limit.
17
18
### Fixed
19
- Do not include the endpoint property in the serialized subrequest.
tests/functional/test_resource.py
@@ -37,6 +37,6 @@ def test_user_update_self(test_farm):
37
38
@farmOS_testing_server
39
def test_user_iterate(test_farm):
40
- all_users = list(test_farm.resource.iterate("user"))
+ all_users = list(test_farm.resource.iterate("user", params={"page[limit]": 1}))
41
42
- assert len(all_users) > 0
+ assert len(all_users) > 1
0 commit comments