pylint issues resolved
Ran tests, and black afterwards. Updated changes.rst and included pre-commit hooks as required. Ran isort on imports.
This commit is contained in:
parent
3dc6db9d0c
commit
dde76ea960
32 changed files with 114 additions and 132 deletions
|
|
@ -22,7 +22,7 @@ def test_teardown_on_pop(app):
|
|||
|
||||
ctx = app.test_request_context()
|
||||
ctx.push()
|
||||
assert buffer == []
|
||||
assert not buffer
|
||||
ctx.pop()
|
||||
assert buffer == [None]
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ def test_teardown_with_previous_exception(app):
|
|||
pass
|
||||
|
||||
with app.test_request_context():
|
||||
assert buffer == []
|
||||
assert not buffer
|
||||
assert buffer == [None]
|
||||
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ def test_teardown_with_handled_exception(app):
|
|||
buffer.append(exception)
|
||||
|
||||
with app.test_request_context():
|
||||
assert buffer == []
|
||||
assert not buffer
|
||||
try:
|
||||
raise Exception("dummy")
|
||||
except Exception:
|
||||
|
|
@ -234,8 +234,7 @@ def test_session_dynamic_cookie_name():
|
|||
def get_cookie_name(self, app):
|
||||
if flask.request.url.endswith("dynamic_cookie"):
|
||||
return "dynamic_cookie_name"
|
||||
else:
|
||||
return super().get_cookie_name(app)
|
||||
return super().get_cookie_name(app)
|
||||
|
||||
class CustomFlask(flask.Flask):
|
||||
session_interface = PathAwareSessionInterface()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue