diff options
Diffstat (limited to 'test/test-api.el')
-rw-r--r-- | test/test-api.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-api.el b/test/test-api.el index ca775ff..91a8adb 100644 --- a/test/test-api.el +++ b/test/test-api.el @@ -11,3 +11,12 @@ (should-error (sx-request-make "questions" '(())))) +(ert-deftest test-request-all () + "Test request all items" + (should + (< 250 + (length (sx-request-all-items "sites"))))) + +(ert-deftest test-method-get-all () + "Tests sx-method interface to `sx-request-all-items'" + (should (< 250 (length (sx-method-call 'sites :get-all t))))) |