From 575b2e53e3e5e076c71bab4e83554e98e070846f Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Fri, 29 Mar 2024 12:31:13 -0400 Subject: [PATCH] Rename pytest's deprecated setup to setup_method in test classes --- pywb/warcserver/test/test_inputreq.py | 2 +- pywb/warcserver/test/test_upstream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pywb/warcserver/test/test_inputreq.py b/pywb/warcserver/test/test_inputreq.py index 041cb61e2..a7cc01cac 100644 --- a/pywb/warcserver/test/test_inputreq.py +++ b/pywb/warcserver/test/test_inputreq.py @@ -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) diff --git a/pywb/warcserver/test/test_upstream.py b/pywb/warcserver/test/test_upstream.py index 1e8e93ed0..ac5e26258 100644 --- a/pywb/warcserver/test/test_upstream.py +++ b/pywb/warcserver/test/test_upstream.py @@ -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)