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 e962bd479eeca8207825fca99acefc9eed3cde53 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()
