allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject allura git commit: [#8051] Update failing tests for exporting file attachments [Forced Update!]
Date Wed, 09 Mar 2016 01:13:25 GMT
Repository: allura
Updated Branches:
  refs/heads/master 24eb0bc9f -> 088422334 (forced update)


[#8051] Update failing tests for exporting file attachments


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

Branch: refs/heads/master
Commit: 088422334b0e69b53e15473eecc37105f120f6a0
Parents: 80e402e
Author: Heith Seewald <heiths@gmail.com>
Authored: Tue Mar 8 19:35:25 2016 -0500
Committer: Heith Seewald <heiths@gmail.com>
Committed: Tue Mar 8 20:12:23 2016 -0500

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_admin.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/08842233/Allura/allura/tests/functional/test_admin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_admin.py b/Allura/allura/tests/functional/test_admin.py
index 97c6d8d..570f147 100644
--- a/Allura/allura/tests/functional/test_admin.py
+++ b/Allura/allura/tests/functional/test_admin.py
@@ -31,7 +31,6 @@ from tg import expose
 from pylons import tmpl_context as c, app_globals as g
 import mock
 
-
 from allura.tests import TestController
 from allura.tests import decorators as td
 from allura.tests.decorators import audits, out_audits
@@ -1073,14 +1072,14 @@ class TestExport(TestController):
         r = self.app.post('/admin/export', {'tools': u'wiki'})
         assert_in('ok', self.webflash(r))
         export_tasks.bulk_export.post.assert_called_once_with(
-            [u'wiki'], 'test.zip', send_email=True)
+            [u'wiki'], 'test.zip', send_email=True, with_attachments=False)
 
     @mock.patch('allura.ext.admin.admin_main.export_tasks')
     def test_selected_multiple_tools(self, export_tasks):
         r = self.app.post('/admin/export', {'tools': [u'wiki', u'wiki2']})
         assert_in('ok', self.webflash(r))
         export_tasks.bulk_export.post.assert_called_once_with(
-            [u'wiki', u'wiki2'], 'test.zip', send_email=True)
+            [u'wiki', u'wiki2'], 'test.zip', send_email=True, with_attachments=False)
 
     def test_export_in_progress(self):
         from allura.tasks import export_tasks
@@ -1176,7 +1175,7 @@ class TestRestExport(TestRestApiBase):
             'status': 'in progress',
         })
         bulk_export.post.assert_called_once_with(
-            ['tickets', 'discussion'], 'test.zip', send_email=False)
+            ['tickets', 'discussion'], 'test.zip', send_email=False, with_attachments=False)
 
 
 class TestRestInstallTool(TestRestApiBase):


Mime
View raw message