Change _cv_req -> _cv_request

This is a clearer name for the variable.
This commit is contained in:
pgjones 2022-07-09 13:41:35 +01:00
parent 979e0adbac
commit 91044c4d76
7 changed files with 25 additions and 25 deletions

View file

@ -5,7 +5,7 @@ import werkzeug
import flask
from flask import appcontext_popped
from flask.cli import ScriptInfo
from flask.globals import _cv_req
from flask.globals import _cv_request
from flask.json import jsonify
from flask.testing import EnvironBuilder
from flask.testing import FlaskCliRunner
@ -400,4 +400,4 @@ def test_client_pop_all_preserved(app, req_ctx, client):
# close the response, releasing the context held by stream_with_context
rv.close()
# only req_ctx fixture should still be pushed
assert _cv_req.get(None) is req_ctx
assert _cv_request.get(None) is req_ctx