Skip to content

Commit

Permalink
Rename pytest's deprecated setup to setup_method in test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Mar 29, 2024
1 parent 1181f2e commit 575b2e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pywb/warcserver/test/test_inputreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __call__(self, environ, start_response):

#=============================================================================
class TestInputReq(object):
def setup(self):
def setup_method(self):
self.app = InputReqApp()
self.testapp = webtest.TestApp(self.app)

Expand Down
2 changes: 1 addition & 1 deletion pywb/warcserver/test/test_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class TestUpstream(LiveServerTests, HttpBinLiveTests, BaseTestClass):
def setup(self):
def setup_method(self):
app = BaseWarcServer()

base_url = 'http://localhost:{0}'.format(self.server.port)
Expand Down

0 comments on commit 575b2e5

Please sign in to comment.