This is an automated email from the ASF dual-hosted git repository. dill0wn pushed a commit to branch dw/8445-part3 in repository https://gitbox.apache.org/repos/asf/allura.git
commit 8ff97294d633ffec75c7d90ef4d7256b2e63c5b6 Author: Dillon Walls <[email protected]> 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()
