Make this test run successfully on its own

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

Branch: refs/heads/db/parallel_test_improvements
Commit: 8a70d6e45b33d356666a95a01fe3c623a2d94557
Parents: 46dc9f9
Author: Dave Brondsema <d...@brondsema.net>
Authored: Thu Sep 22 10:16:04 2016 -0400
Committer: Dave Brondsema <d...@brondsema.net>
Committed: Thu Sep 22 10:16:04 2016 -0400

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/tests/github/test_tasks.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/8a70d6e4/ForgeImporters/forgeimporters/tests/github/test_tasks.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/tests/github/test_tasks.py 
b/ForgeImporters/forgeimporters/tests/github/test_tasks.py
index cf58644..b048407 100644
--- a/ForgeImporters/forgeimporters/tests/github/test_tasks.py
+++ b/ForgeImporters/forgeimporters/tests/github/test_tasks.py
@@ -23,6 +23,7 @@ from ...github import tasks
 @mock.patch.object(tasks, 'GitHubProjectExtractor')
 @mock.patch.object(tasks, 'ThreadLocalORMSession')
 @mock.patch.object(tasks, 'c')
+@mock.patch.object(tasks, 'g', mock.MagicMock())
 def test_import_project_info(c, session, ghpe):
     c.project = mock.Mock(name='project')
     c.user = mock.Mock(name='user')

Reply via email to