allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#6964] Make commit mock a proper activity object
Date Wed, 05 Feb 2014 17:15:30 GMT
Updated Branches:
  refs/heads/master 27d540c30 -> 18b429969


[#6964] Make commit mock a proper activity object

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


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

Branch: refs/heads/master
Commit: 18b429969f19191f33038315d94dc6bd073656fc
Parents: 27d540c
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Wed Feb 5 17:15:17 2014 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Feb 5 17:15:17 2014 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/tests/model/test_repository.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/18b42996/ForgeSVN/forgesvn/tests/model/test_repository.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/tests/model/test_repository.py b/ForgeSVN/forgesvn/tests/model/test_repository.py
index 9b527f0..7dc2177 100644
--- a/ForgeSVN/forgesvn/tests/model/test_repository.py
+++ b/ForgeSVN/forgesvn/tests/model/test_repository.py
@@ -810,6 +810,10 @@ class TestRepo(_TestWithRepo):
         ci.committed.name = committer_name
         ci.committed.email = committer_email
         ci.author_url = '/u/test-committer/'
+        ci.activity_name = '[deadbeef]'
+        ci.activity_url = 'url'
+        ci.activity_extras = {}
+        del ci.node_id
         self.repo._impl.commit = mock.Mock(return_value=ci)
         self.repo._impl.new_commits = mock.Mock(
             return_value=['foo%d' % i for i in range(100)])


Mime
View raw message