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:
parent
1181f2eeac
commit
575b2e53e3
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user