From 53817a9e3287493d1f68d802201e7ae00d9ad04d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 28 Dec 2025 23:01:58 -0600 Subject: [PATCH] test: fix pylint warnings for FunctionalTestCase --- src/wuttaweb/testing.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/wuttaweb/testing.py b/src/wuttaweb/testing.py index 7ff4301..b9986aa 100644 --- a/src/wuttaweb/testing.py +++ b/src/wuttaweb/testing.py @@ -179,13 +179,17 @@ class VersionWebTestCase(WebTestCase): @pytest.mark.functional class FunctionalTestCase(DataTestCase): """ - Base class for test suites requiring a fully complete web app, to - respond to functional tests. + Base class for test suites requiring a fully complete web app, for + sake of functional tests. + + .. warning:: + + This class is very new and not yet mature; it will surely change. """ wsgi_main_app = None - def make_config(self, **kwargs): + def make_config(self, **kwargs): # pylint: disable=arguments-differ sqlite_path = self.write_file("test.sqlite", "") self.sqlite_engine_url = f"sqlite:///{sqlite_path}" @@ -203,14 +207,14 @@ version_locations = wuttjamaican.db:alembic/versions return super().make_config([config_path], **kwargs) - def make_webtest(self): + def make_webtest(self): # pylint: disable=missing-function-docstring webapp = appmod.make_wsgi_app( self.wsgi_main_app or appmod.main, config=self.config ) return TestApp(webapp) - def get_csrf_token(self, testapp): + def get_csrf_token(self, testapp): # pylint: disable=missing-function-docstring res = testapp.get("/login") match = re.search( r'', res.text