1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 09:13:23 +00:00

remove pytest deprecation warning for yield_fixture

This commit is contained in:
Jair Henrique
2022-10-31 22:36:33 -03:00
parent 964615af25
commit cef85a4986
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ class Proxy(http.server.SimpleHTTPRequestHandler):
self.copyfile(upstream_response, self.wfile)
@pytest.yield_fixture(scope="session")
@pytest.fixture(scope="session")
def proxy_server():
httpd = socketserver.ThreadingTCPServer(("", 0), Proxy)
proxy_process = multiprocessing.Process(target=httpd.serve_forever)

View File

@@ -84,7 +84,7 @@ def start_rpc_server(q):
httpd.serve_forever()
@pytest.yield_fixture(scope="session")
@pytest.fixture(scope="session")
def rpc_server():
q = multiprocessing.Queue()
proxy_process = multiprocessing.Process(target=start_rpc_server, args=(q,))