You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by di...@apache.org on 2022/11/04 19:44:07 UTC

[allura] 11/20: [#8455] make setup 'method' param optional

This is an automated email from the ASF dual-hosted git repository.

dill0wn pushed a commit to branch pytest-finalize
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 8b1713cd0dd5d7e12823e983c4da43246ced80bd
Author: Dillon Walls <di...@slashdotmedia.com>
AuthorDate: Tue Oct 25 13:34:14 2022 +0000

    [#8455] make setup 'method' param optional
---
 AlluraTest/alluratest/controller.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/AlluraTest/alluratest/controller.py b/AlluraTest/alluratest/controller.py
index f0011a74b..207946075 100644
--- a/AlluraTest/alluratest/controller.py
+++ b/AlluraTest/alluratest/controller.py
@@ -169,7 +169,7 @@ class TestController:
     application_under_test = 'main'
     validate_skip = False
 
-    def setup_method(self, method):
+    def setup_method(self, method=None):
         """Method called by nose before running each test"""
         pkg = self.__module__.split('.')[0]
         self.app = ValidatingTestApp(
@@ -181,7 +181,7 @@ class TestController:
             self.smtp_mock = mock.patch('allura.lib.mail_util.smtplib.SMTP')
             self.smtp_mock.start()
 
-    def teardown_method(self, method):
+    def teardown_method(self, method=None):
         """Method called by nose after running each test"""
         if asbool(tg.config.get('smtp.mock')):
             self.smtp_mock.stop()