forked from orbit-oss/flask
deprecate config attributes
This commit is contained in:
parent
98ca00d545
commit
bfdd37110c
8 changed files with 154 additions and 57 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import json
|
||||
import os
|
||||
import textwrap
|
||||
from datetime import timedelta
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
@ -207,14 +206,6 @@ def test_session_lifetime():
|
|||
assert app.permanent_session_lifetime.seconds == 42
|
||||
|
||||
|
||||
def test_send_file_max_age():
|
||||
app = flask.Flask(__name__)
|
||||
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = 3600
|
||||
assert app.send_file_max_age_default.seconds == 3600
|
||||
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = timedelta(hours=2)
|
||||
assert app.send_file_max_age_default.seconds == 7200
|
||||
|
||||
|
||||
def test_get_namespace():
|
||||
app = flask.Flask(__name__)
|
||||
app.config["FOO_OPTION_1"] = "foo option 1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue