From b5e4da2a4b6f59e28b1aca11f7dad9323df1a8fe Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Fri, 2 Jan 2015 22:14:37 -0500 Subject: Don't display status messages from url during test --- test/tests.el | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/tests.el b/test/tests.el index 53e053f..bb2f9f4 100644 --- a/test/tests.el +++ b/test/tests.el @@ -11,6 +11,7 @@ sx-initialized t sx-request-remaining-api-requests-message-threshold 50000 debug-on-error t + url-show-status nil user-emacs-directory "." sx-test-base-dir (file-name-directory (or load-file-name "./"))) -- cgit v1.2.3 From aea08be5b6bf4286dacc8ae12f912f36223352f8 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Sat, 3 Jan 2015 23:16:05 -0500 Subject: Change test to reflect new default page size See eeb327e3af94e1118218c129916b8f7165e835ef. --- test/test-search.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test-search.el b/test/test-search.el index 72dbcdc..72f0846 100644 --- a/test/test-search.el +++ b/test/test-search.el @@ -29,8 +29,8 @@ (ert-deftest test-search-full-page () "Test retrieval of the full search page" (should - (= 30 (length (sx-search-get-questions - "stackoverflow" 1 "jquery"))))) + (= 100 (length (sx-search-get-questions + "stackoverflow" 1 "jquery"))))) (ert-deftest test-search-exclude-tags () "Test excluding tags from a search" -- cgit v1.2.3 From ea2e7287b1c4965ab30da749624a06d5f4e5a9e3 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Sat, 3 Jan 2015 23:16:58 -0500 Subject: Remove unneeded test This test is largely unneeded and (currently) almost doubles the test time. --- test/test-api.el | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test') diff --git a/test/test-api.el b/test/test-api.el index 91a8adb..b7d5dbb 100644 --- a/test/test-api.el +++ b/test/test-api.el @@ -11,12 +11,6 @@ (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))))) -- cgit v1.2.3