allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/2] allura git commit: Added test to see if user api is working
Date Mon, 11 Jul 2016 15:09:18 GMT
Repository: allura
Updated Branches:
  refs/heads/master 2dac879ff -> ac793feca


Added test to see if user api is working


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/ac793fec
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/ac793fec
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/ac793fec

Branch: refs/heads/master
Commit: ac793fecaa31287dbd7fbb615800a930c0eab901
Parents: 4192e2d
Author: Rohan Verma <rohanverma2004@gmail.com>
Authored: Fri Jul 1 00:12:32 2016 +0530
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Mon Jul 11 11:08:51 2016 -0400

----------------------------------------------------------------------
 ForgeActivity/forgeactivity/tests/functional/test_rest.py | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/ac793fec/ForgeActivity/forgeactivity/tests/functional/test_rest.py
----------------------------------------------------------------------
diff --git a/ForgeActivity/forgeactivity/tests/functional/test_rest.py b/ForgeActivity/forgeactivity/tests/functional/test_rest.py
index 8c9e0f5..1c99d5f 100644
--- a/ForgeActivity/forgeactivity/tests/functional/test_rest.py
+++ b/ForgeActivity/forgeactivity/tests/functional/test_rest.py
@@ -71,3 +71,8 @@ class TestActivityHasAccessAPI(TestRestApiBase):
             user='root')
         assert_equal(r.status_int, 200)
         assert_equal(r.json['result'], False)
+
+
+    def test_user_api(self):
+        r = self.api_get('/rest/u/test-user/activity')
+        assert_equal(r.status_int, 200)
\ No newline at end of file


Mime
View raw message