aboutsummaryrefslogtreecommitdiff
path: root/tests.el
blob: 26673c3c8bf52f845cad359c63eaf0580748017b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(defun -stack--nuke ()
  (interactive)
  (mapatoms
   (lambda (symbol)
     (if (string-prefix-p "stack-" (symbol-name symbol))
	 (unintern symbol)))))

;;; Tests

(require 'stack-core)
(require 'stack-question)

(setq stack-core-remaining-api-requests-message-threshold 50000)

(ert-deftest test-question-retrieve ()
  (should (stack-question-get-questions 'emacs)))

(ert-deftest test-bad-request ()
  (should-error
   (stack-core-make-request "questions" '(()))))