allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [3/9] git commit: [#7292] ticket:568 JSON Profile test stub
Date Mon, 21 Apr 2014 17:24:02 GMT
[#7292] ticket:568 JSON Profile test stub


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

Branch: refs/heads/master
Commit: d541bdcdc977a16ece82d76dbb0c249387c36074
Parents: 9ac1ecc
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Tue Apr 8 15:40:09 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Apr 21 17:21:57 2014 +0000

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_rest.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/d541bdcd/Allura/allura/tests/functional/test_rest.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_rest.py b/Allura/allura/tests/functional/test_rest.py
index 55dcc0b..0537bd7 100644
--- a/Allura/allura/tests/functional/test_rest.py
+++ b/Allura/allura/tests/functional/test_rest.py
@@ -289,3 +289,10 @@ class TestDoap(TestRestApiBase):
                  for t in tools]
         assert_in(('Tickets', 'http://localhost/p/test/bugs/'), tools)
         assert_not_in(('Tickets', 'http://localhost/p/test/private-bugs/'), tools)
+
+
+class TestUserProfile(TestRestApiBase):
+    def test_profile_data(self):
+        r = self.app.get('/rest/u/test-admin/')
+        assert_equal(r.content_type, 'application/json')
+        assert False  # finish test


Mime
View raw message