1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00

Rename pytest's deprecated setup to setup_method in test classes

This commit is contained in:
Tessa Walsh 2024-03-29 12:31:13 -04:00
parent 1181f2eeac
commit 575b2e53e3
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class InputReqApp(object):
#=============================================================================
class TestInputReq(object):
def setup(self):
def setup_method(self):
self.app = InputReqApp()
self.testapp = webtest.TestApp(self.app)

View File

@ -18,7 +18,7 @@ from .testutils import LiveServerTests, HttpBinLiveTests, BaseTestClass
class TestUpstream(LiveServerTests, HttpBinLiveTests, BaseTestClass):
def setup(self):
def setup_method(self):
app = BaseWarcServer()
base_url = 'http://localhost:{0}'.format(self.server.port)