aboutsummaryrefslogtreecommitdiff
path: root/test/test-api.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-02 12:14:23 -0500
committerSean Allred <code@seanallred.com>2015-01-02 12:14:23 -0500
commitdbbcabcffcd7ef171b7f8f28ce35e28b70aa00a8 (patch)
tree7c66182afa68c8dc1528c50ae0c0f846d278ef12 /test/test-api.el
parent00ccd139248e782cd8316eff65c26aed838c7e46 (diff)
parent9a420bffcc426b4826f14ad1f62b5430750821df (diff)
Merge branch 'master' into fix-mark-read-logic
Diffstat (limited to 'test/test-api.el')
-rw-r--r--test/test-api.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test-api.el b/test/test-api.el
new file mode 100644
index 0000000..ca775ff
--- /dev/null
+++ b/test/test-api.el
@@ -0,0 +1,13 @@
+(ert-deftest test-basic-request ()
+ "Test basic request functionality"
+ (should (sx-request-make "sites")))
+
+(ert-deftest test-question-retrieve ()
+ "Test the ability to receive a list of questions."
+ (should (sx-question-get-questions 'emacs)))
+
+(ert-deftest test-bad-request ()
+ "Test a method given a bad set of keywords"
+ (should-error
+ (sx-request-make "questions" '(()))))
+